API Docs for: 0.1.0
Show:

config.component.physics.joint.distance Class

* THIS IS NOT A CLASS! ITS A CONFIGURATION OBJECT. *

Physics distance joint configuration.

Used by zerk.game.engine.component.physics

Properties

anchorSourceX

Float

Horizontal anchor position of the joint on the source body

anchorSourceY

Float

Vertical anchor position of the joint on the source body

anchorTargetX

Float

Horizontal anchor position of the joint on the target body

anchorTargetY

Float

Vertical anchor position of the joint on the target body

collideConnected

Boolean

Indicates that connected bodies can collide each other

dampingRatio

Float

Damping ratio

The damping ratio is non-dimensional and is typically between 0 and 1, but can be larger. At 1, the damping is critical (all oscillations should vanish).

frequencyHz

Float

Frequency

The frequency is specified in Hertz. Typically the frequency should be less than a half the frequency of the time step. So if you are using a 60Hz time step, the frequency of the distance joint should be less than 30Hz. The reason is related to the Nyquist frequency.

type

String

Type name of the joint