API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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
The body to drag.
dampingRatio?: numberSoft-spring damping ratio. Default 0.7.
hertz?: numberSoft-spring frequency in Hz (higher = snappier). Default 5.
maxForce?: numberMaximum pulling force - clamps the per-step impulse so heavy bodies lag. Default Infinity.
target: Readonly<PointLikeStructural type for any object with a 2D `x`/`y` position.>World point to pull the body toward - also the grab point on the body at creation.
Source