timelinefx:timelinefx.tlGameObject.SetCollisionBox
Method SetCollisionBox:Void( x:Float, y:Float, w:Float, h:Float, layer:Int=0 )
Set the dimensions of the objects collision box
This will create a new box with the given dimensions and set the collision type of the object to tlBOX_COLLISION,
removing the current one from the world quadtree if it's in there. Set the layer to put the object on a specific collision layer.
| Parameters |
|
x |
Float |
y |
Float |
w |
Float |
h |
Float |
layer |
Int |