rigidbody

Contents

Name Description
applyforce( direction , offset )

Apply force at a reletive offset.

applyimpulse( impulse [, offset ] )

Apply an impulse to the rigidboy

getadamping( )

Gets the angular damping applied to this rigidbody

getgravity( )

Gets the direction of gravity on this object.

getldamping( )

Gets the damping applied to this rigidbody

getvelocity( )

Gets the velocity of this object

setangfactor( dir )

Sets the angular factor of the rigidbody

setdamping( damping , angular_damping )

Sets the damping of this object.

setflags( flags )

Sets flags on this rigidbody

setgravity( direction )

Sets the direction of gravity on this object.

setvelocity( direction )

Sets the velocity of this object


applyforce( vector3d direction , vector3d offset )

Apply force at a reletive offset.

Parameters

Defined at shared/lua_api/phys/bphysgeneric.cpp:80


applyimpulse( vector3 impulse [ , vector3 offset ] )

Apply an impulse to the rigidboy

Parameters

Defined at shared/lua_api/phys/bphysgeneric.cpp:225


getadamping( )

Gets the angular damping applied to this rigidbody

Returns

Defined at shared/lua_api/phys/bphysgeneric.cpp:137


getgravity( )

Gets the direction of gravity on this object.

Returns

Defined at shared/lua_api/phys/bphysgeneric.cpp:64


getldamping( )

Gets the damping applied to this rigidbody

Returns

Defined at shared/lua_api/phys/bphysgeneric.cpp:108


getvelocity( )

Gets the velocity of this object

Returns

Defined at shared/lua_api/phys/bphysgeneric.cpp:152


setangfactor( vector3 dir )

Sets the angular factor of the rigidbody

TODO:What does this actually do?

Parameters

Defined at shared/lua_api/phys/bphysgeneric.cpp:124


setdamping( number damping , number angular_damping )

Sets the damping of this object.

Parameters

Defined at shared/lua_api/phys/bphysgeneric.cpp:188


setflags( number flags )

Sets flags on this rigidbody

Parameters

Defined at shared/lua_api/phys/bphysgeneric.cpp:208


setgravity( vector3d direction )

Sets the direction of gravity on this object.

Parameters

Defined at shared/lua_api/phys/bphysgeneric.cpp:47


setvelocity( vector3d direction )

Sets the velocity of this object

Parameters

Defined at shared/lua_api/phys/bphysgeneric.cpp:168