DynamicChain
APJS Script API reference for the DynamicChain class.
| Type | Name | Interface Description |
|---|---|---|
| Variables | damping: number | • Function: Gets the damping value of the dynamic chain which controls how quickly the chain movement slows down. Returns The damping value of the dynamic chain. |
| Variables | elasticity: number | • Function: Gets the elasticity value of the dynamic chain which controls how bouncy the chain is. |
| Variables | force: Vector3f | • Function: the consistent external force applied to the dynamic chain |
| Variables | inertia: number | • Function: Gets the total inertia of the dynamic chain which controls how fast the chain moves. |
| Variables | isLocalForce: boolean | • Function: Gets whether the force applied to the dynamic chain is local or not. |
| Variables | isRelative: boolean | • Function: Gets whether the force applied to the dynamic chain is relative to another object. |
| Variables | physicsAnimation: boolean | • Function: Gets whether animation physics blending is enabled for the dynamic chain. |
| Variables | physicsAnimationRate: number | • Function: Gets the animation physics blending value for the dynamic chain. |
| Variables | stiffness: number | • Function: Gets the stiffness value of the dynamic chain which controls how stiff the chain is. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.DynamicChain();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use DynamicChain here
}
onUpdate(deltaTime: number) {
}
}