Represents an Apex Cloth actor.
This object exists only if the Stingray engine has been compiled with Apex support.
Constructors and accessors
Other related reference items
create_collision_plane ( self, point, normal ) : number
Creates a collision plane that the cloth actor will collide with.
|
self : |
Specifies the object instance that this function will act on. You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see Object lifetimes and userdata binding, or this page in the Lua documentation. | |
point : |
A point on the surface of the plane. | |
normal : |
The normal vector of plane. |
number |
The ID of the newly created collision plane. |
Other related reference items
destroy_collision ( self, id )
Destroys a collision plane previously created with create_collision_plane().
|
self : |
Specifies the object instance that this function will act on. You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see Object lifetimes and userdata binding, or this page in the Lua documentation. | |
id : | number |
The ID of the collision plane to destroy. |
This function does not return any values. |
move_collision_plane ( self, id, point, normal )
Moves the specified collision plane to a new position and/or orientation.
|
self : |
Specifies the object instance that this function will act on. You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see Object lifetimes and userdata binding, or this page in the Lua documentation. | |
id : | number |
The ID of the collision plane to move. |
point : |
A point on the surface of the plane at its new location. | |
normal : |
The normal vector of the plane in its new orientation. |
This function does not return any values. |