Interface PhysicsSimulator
Methods
reset
- reset(): void
-
Returns void
setConstraint
- setConstraint(bone1Name, bone2Name, distance): void
-
Parameters
-
bone1Name: string
-
bone2Name: string
-
distance: number
Returns void
setDamping
- setDamping(damping): void
-
Returns void
setGravity
- setGravity(gravity): void
-
Returns void
setInvMass
- setInvMass(boneName, value): void
-
Parameters
-
boneName: string
-
value: number
Returns void
setSphereCollider
- setSphereCollider(sphereIndex, center, radius): void
-
Parameters
-
sphereIndex: number
-
-
radius: number
Returns void
interface for adjustment physics simulation.