mover joint circular bound
This commit is contained in:
parent
bb2c422632
commit
9ab0f0bdc5
21 changed files with 540 additions and 277 deletions
|
|
@ -1368,21 +1368,21 @@ B3_API float b3MotorJoint_GetMaxSpringTorque( b3JointId jointId );
|
|||
* @{
|
||||
*/
|
||||
|
||||
/// Create a mover joint
|
||||
/// Create a mover joint.
|
||||
/// @see b3MoverJointDef for details
|
||||
B3_API b3JointId b3CreateMoverJoint( b3WorldId worldId, const b3MoverJointDef* def );
|
||||
|
||||
/// Set the desired relative linear velocity in meters per second
|
||||
/// Set the desired relative linear velocity, usually in meters per second.
|
||||
B3_API void b3MoverJoint_SetLinearVelocity( b3JointId jointId, b3Vec3 velocity );
|
||||
|
||||
/// Get the desired relative linear velocity in meters per second
|
||||
/// Get the desired relative linear velocity, usually in meters per second.
|
||||
B3_API b3Vec3 b3MoverJoint_GetLinearVelocity( b3JointId jointId );
|
||||
|
||||
/// Set the joint maximum force, usually in newtons
|
||||
B3_API void b3MoverJoint_SetMaxVelocityForce( b3JointId jointId, b3Vec3 maxForce );
|
||||
/// Set the joint maximum force, usually in newtons.
|
||||
B3_API void b3MoverJoint_SetMaxVelocityForce( b3JointId jointId, float maxForce );
|
||||
|
||||
/// Get the joint maximum force, usually in newtons
|
||||
B3_API b3Vec3 b3MoverJoint_GetMaxVelocityForce( b3JointId jointId );
|
||||
/// Get the joint maximum force, usually in newtons.
|
||||
B3_API float b3MoverJoint_GetMaxVelocityForce( b3JointId jointId );
|
||||
|
||||
/**@}*/ // mover_joint
|
||||
|
||||
|
|
|
|||
|
|
@ -769,8 +769,8 @@ typedef struct b3MotorJointDef
|
|||
/// @ingroup motor_joint
|
||||
B3_API b3MotorJointDef b3DefaultMotorJointDef( void );
|
||||
|
||||
/// A mover joint is used to move a dynamic character mover through velocity commands. The x, y, and
|
||||
/// z directions are handled separately. Does not affect rotation.
|
||||
/// A mover joint is used to move a dynamic character mover through velocity commands. Force is only
|
||||
/// applied in the xz plane of joint frame B. Does not affect rotation.
|
||||
/// @ingroup mover_joint
|
||||
typedef struct b3MoverJointDef
|
||||
{
|
||||
|
|
@ -781,7 +781,7 @@ typedef struct b3MoverJointDef
|
|||
b3Vec3 linearVelocity;
|
||||
|
||||
/// The maximum motor force in newtons.
|
||||
b3Vec3 maxVelocityForce;
|
||||
float maxForce;
|
||||
} b3MoverJointDef;
|
||||
|
||||
/// Use this to initialize your joint definition
|
||||
|
|
|
|||
Loading…
Reference in a new issue