API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceMouseJointOptions

@codexo/exojs-physics / physics / stable

Construction options for a MouseJoint.

5
props
0
methods
0
events
Import
import { MouseJointOptions } from '@codexo/exojs-physics'

Construction options for a MouseJoint.

Properties5
dampingRatio?: number
Soft-spring damping ratio. Default 0.7.
hertz?: number
Soft-spring frequency in Hz (higher = snappier). Default 5.
maxForce?: number
Maximum pulling force - clamps the per-step impulse so heavy bodies lag. Default Infinity.
World point to pull the body toward - also the grab point on the body at creation.
Source