new CollisionMap( [tilesize] [, data])
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
tilesize |
integer |
<optional> |
32 | [description] |
data |
array |
<optional> |
[description] |
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 10)
Members
-
data :array
-
[description]
Type:
- array
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 40)
-
height :number
-
[description]
Type:
- number
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 58)
-
lastSlope :integer
-
[description]
Type:
- integer
- Since: 3.0.0
- Default Value:
-
- 55
- Source: src/physics/impact/CollisionMap.js (Line 67)
-
tiledef :object
-
[description]
Type:
- object
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 77)
-
tilesize :integer
-
[description]
Type:
- integer
- Since: 3.0.0
- Default Value:
-
- 32
- Source: src/physics/impact/CollisionMap.js (Line 30)
-
width :number
-
[description]
Type:
- number
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 49)
Methods
-
checkDef(res, t, x, y, vx, vy, width, height, tileX, tileY)
-
[description]
Parameters:
Name Type Description res
object [description]
t
number [description]
x
number [description]
y
number [description]
vx
number [description]
vy
number [description]
width
number [description]
height
number [description]
tileX
number [description]
tileY
number [description]
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 287)
Returns:
[description]
- Type
- boolean
-
step(res, x, y, vx, vy, width, height, rvx, rvy, step)
-
[description]
Parameters:
Name Type Description res
object [description]
x
number [description]
y
number [description]
vx
number [description]
vy
number [description]
width
number [description]
height
number [description]
rvx
number [description]
rvy
number [description]
step
number [description]
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 156)
-
trace(x, y, vx, vy, objectWidth, objectHeight)
-
[description]
Parameters:
Name Type Description x
number [description]
y
number [description]
vx
number [description]
vy
number [description]
objectWidth
number [description]
objectHeight
number [description]
- Since: 3.0.0
- Source: src/physics/impact/CollisionMap.js (Line 87)
Returns:
[description]
- Type
- boolean