aframe-physics-lerp-component
A Physics Lerp component for A-Frame.
API
Property | Description | Default Value |
---|---|---|
targetPosition | A THREE.Vector3 object representing the target position | 0, 0, 0 |
targetQuaternion | A THREE.Quaternion object representing the target quaternion | 0, 0, 0, 0 |
targetVelocity | A THREE.Vector3 object representing the target velocity | 0, 0, 0 |
targetAngularVelocity | A THREE.Vector3 object representing the target angularVelocity | 0, 0, 0 |
time | Time to complete the interpolation in milliseconds | 100 |
Installation
Browser
Install and use by directly including the browser files:
My A-Frame Scene
npm
Install via npm:
npm install aframe-physics-lerp-component
Then register and use.
;;