TOKAB_AddBox(AnimatedBody%,Width#,Height#,Depth#) |
Parameters: AnimatedBody% = Animated body's handle Width# = Width of box Height# = Height of box Depth# = Depth of box |
Return value: Geometry's handle |
Description: Adds a box geometry to a rigid body. |
The classic use of animated bodies, the floor ground = CreateCube() EntityColor ground,5,5,55 ScaleEntity ground,50,5,50 PositionEntity ground,0,-5,0 abground = TOKAB_Create() TOKAB_AddBox(abground,100.0,10.0,100.0) TOKAB_SetPosition(abground,0.0,-5.0,0.0) |