#How to make a nice flying jumping
1 messages · Page 1 of 1 (latest)
Could you explain in more detail?
i dont think i can. i want to make it a smooth jump/flying
Position[Y] = (Vector3 Split(Get Position(Player))[Y] + Vector3 Split(Get Position(Object))[Y]) / 2
My beta guess is to probably make a 60hz
- Create a new Float variable for the object’s Y velocity "Object Y Velocity".
- When the object is supposed to jump, set Object Y Velocity to a value higher than 0; 10 for example.
- When the object lands on the ground, set Object Y Velocity to 0.
- Using an "Event Receiver: Update 30Hz", set Object Y Velocity to (Object Y Velocity - 9.81 * Delta Time).
- Using an Event Receiver: Update 30Hz (this should be the one you are using to set the object's position), set the object's Y position to (Get Position(object)[Y] + Object Y Velocity * Delta Time).