Constructors
constructor
- new ImpulseJointSet(raw?: RawImpulseJointSet): ImpulseJointSet
-
Parameters
-
Optional
raw: RawImpulseJointSet
Properties
Private
map
map: any
raw
raw: RawImpulseJointSet
Methods
contains
- contains(handle: number): boolean
-
Returns boolean
createJoint
- createJoint(bodies: RigidBodySet, desc: JointData, parent1: number, parent2: number, wakeUp: boolean): ImpulseJoint
-
Parameters
-
-
-
parent1: number
-
parent2: number
-
wakeUp: boolean
finalizeDeserialization
- finalizeDeserialization(bodies: RigidBodySet): void
Internal
Returns void
forEach
- forEach(f: ((joint: ImpulseJoint) => void)): void
-
Returns void
forEachJointHandleAttachedToRigidBody
- forEachJointHandleAttachedToRigidBody(handle: number, f: ((handle: number) => void)): void
-
Parameters
-
handle: number
-
f: ((handle: number) => void)
-
- (handle: number): void
-
Returns void
Returns void
free
- free(): void
-
Returns void
get
- get(handle: number): ImpulseJoint
-
getAll
- getAll(): ImpulseJoint[]
-
len
- len(): number
-
Returns number
remove
- remove(handle: number, wakeUp: boolean): void
-
Parameters
-
handle: number
-
wakeUp: boolean
Returns void
unmap
- unmap(handle: number): void
-
Returns void
A set of joints.
To avoid leaking WASM resources, this MUST be freed manually with
jointSet.free()
once you are done using it (and all the joints it created).