Box2D
Safe HaskellNone
LanguageGHC2021

Box2D.WeldJoint

Synopsis

Documentation

create :: WorldId -> WeldJointDef -> IO JointId Source #

Create a weld joint See also b2WeldJointDef for details.

Binds b2CreateWeldJoint.

setLinearHertz Source #

Arguments

:: JointId 
-> Float
hertz
-> IO () 

Set the weld joint linear stiffness in Hertz. 0 is rigid.

Binds b2WeldJoint_SetLinearHertz.

getLinearHertz :: JointId -> IO Float Source #

Get the weld joint linear stiffness in Hertz

Binds b2WeldJoint_GetLinearHertz.

setLinearDampingRatio Source #

Arguments

:: JointId 
-> Float
dampingRatio
-> IO () 

Set the weld joint linear damping ratio (non-dimensional)

Binds b2WeldJoint_SetLinearDampingRatio.

getLinearDampingRatio :: JointId -> IO Float Source #

Get the weld joint linear damping ratio (non-dimensional)

Binds b2WeldJoint_GetLinearDampingRatio.

setAngularHertz Source #

Arguments

:: JointId 
-> Float
hertz
-> IO () 

Set the weld joint angular stiffness in Hertz. 0 is rigid.

Binds b2WeldJoint_SetAngularHertz.

getAngularHertz :: JointId -> IO Float Source #

Get the weld joint angular stiffness in Hertz

Binds b2WeldJoint_GetAngularHertz.

setAngularDampingRatio Source #

Arguments

:: JointId 
-> Float
dampingRatio
-> IO () 

Set weld joint angular damping ratio, non-dimensional

Binds b2WeldJoint_SetAngularDampingRatio.

getAngularDampingRatio :: JointId -> IO Float Source #

Get the weld joint angular damping ratio, non-dimensional

Binds b2WeldJoint_GetAngularDampingRatio.