UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

60 lines (29 loc) 1.03 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [server](./server.md) &gt; [RigidBody](./server.rigidbody.md) &gt; [setNextKinematicPosition](./server.rigidbody.setnextkinematicposition.md) ## RigidBody.setNextKinematicPosition() method Sets the next kinematic position of the rigid body. Use for: kinematic bodies driven by explicit position each tick. Do NOT use for: dynamic bodies; use forces or velocity instead. **Signature:** ```typescript setNextKinematicPosition(nextKinematicPosition: Vector3Like): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> nextKinematicPosition </td><td> [Vector3Like](./server.vector3like.md) </td><td> The next kinematic position of the rigid body. \*\*Requires:\*\* Rigid body must be kinematic. \*\*Category:\*\* Physics </td></tr> </tbody></table> **Returns:** void