Interactor.Update
void Update(Vec3 capsuleStart, Vec3 capsuleEnd, Pose motion, Vec3 motionAnchor, Vec3 secondaryMotion, BtnState active, BtnState tracked)
Update the interactor with data for the current frame! This should be called as soon as possible at the start of the frame before any UI is done, otherwise the UI will not properly react.
| Vec3 capsuleStart | World space location of the collision capsule’s start. For Line interactors, this should be the ‘origin’ of the capsule’s orientation. |
| Vec3 capsuleEnd | World space location of the collision capsule’s end. For Line interactors, this should be in the direction the Start/origin is facing. |
| Pose motion | This pose is the source of translation and rotation motion caused by the interactor. In most cases it will be the same as your capsuleStart with the orientation of your interactor, but in some instance may be something else! |
| Vec3 motionAnchor | Some motion, like that of amplified motion, needs some anchor point with which to determine the amplification from. This might be a shoulder, or a head, or some other point that the interactor will push from / pull towards. |
| Vec3 secondaryMotion | This is motion that comes from somewhere other than the interactor itself! This can be something like an analog stick on a controller, or the scroll wheel of a mouse. |
| BtnState active | The activation state of the Interactor. |
| BtnState tracked | The tracking state of the Interactor. |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!