lua.wetgenes.bullet.world.body
body = world:body("rigid",shape,mass,x,y,z,cgroup,cmask)
body = world:body({name="rigid",shape=shape,mass=mass.pos=V3(0)})
Create a body.
lua.wetgenes.bullet.world.body.active
b = body:active( true )
b = body:active( false )
b = body:active()
get/set the active state of an object
lua.wetgenes.bullet.world.body.angular_factor
x,y,z = body:angular_factor( x , y , z )
x,y,z = body:angular_factor( r )
r = ( body:angular_factor( r ) )
get/set the angular factor of an object (which disables rotation when zero)
lua.wetgenes.bullet.world.body.angular_velocity
x,y,z = body:angular_velocity( x,y,z )
x,y,z = body:angular_velocity()
get/set the body angular velocity
lua.wetgenes.bullet.world.body.ccd
r,t = body:ccd( radius,threshold )
r,t = body:ccd()
get/set the continuos collision detection radius,threshold values
lua.wetgenes.bullet.world.body.custom_material_callback
b = body:custom_material_callback( b )
b = body:custom_material_callback()
get/set the body custom_material_callback flag
When set we run a custom callback to try and smooth mesh collisions.
lua.wetgenes.bullet.world.body.damping
l,a = body:damping( linear , angular )
l,a = body:damping()
get/set the body damping
lua.wetgenes.bullet.world.body.destroy
body:destroy()
Destroy body.
lua.wetgenes.bullet.world.body.factor
x,y,z = body:factor( x , y , z )
x,y,z = body:factor( r )
r = ( body:factor( r ) )
get/set the linear factor of an object (which disables movement when zero)
lua.wetgenes.bullet.world.body.friction
l,a,s = body:friction( linear , angular , spinning )
l,a,s = body:friction()
get/set the body friction
lua.wetgenes.bullet.world.body.restitution
r = body:transform( r )
r = body:transform()
get/set the body restitution
lua.wetgenes.bullet.world.body.transform
px,py,pz,qx,qy,qz,qw = body:transform()
px,py,pz,qx,qy,qz,qw = body:transform(px,py,pz)
px,py,pz,qx,qy,qz,qw = body:transform(px,py,pz,qx,qy,qz,qw)
get/set the body transform. Position and Rotation Quaternion.
lua.wetgenes.bullet.world.body.velocity
x,y,z = body:velocity( x,y,z )
x,y,z = body:velocity()
get/set the body velocity