How do I create a kinematic body? #68
Replies: 3 comments 2 replies
-
Do you just want to set the position on the server? Then make the body static and move it around by setting the position. Here is an example for a "traditional" kinematic object:
The box moves with a constant velocity and is unstoppable. Make sure to filter out any collision between this object and any static object, otherwise the solver might explode (unstoppable force vs immovable object). |
Beta Was this translation helpful? Give feedback.
-
thank you! |
Beta Was this translation helpful? Give feedback.
-
I am also looking into Jitter Physics for my game. I don't need any complex simulation, but I do need a character controller. I will preferably provide velocity myself, the only real feature I need is for it to not phase through walls, and slide appropriately(so, something likes godot's move_and_slide). Could this be done with Jitter 2? And if, how? If not, I strongly recommend you add it to the engine, since kinematic bodies are really useful. |
Beta Was this translation helpful? Give feedback.
-
To use jitter2 on the server
I want to receive the character's movement from the client.
So, on the server, I want to handle the character's rigid body as kinematic. How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions