Velocity to Vector3

typescript’s applyimpulse needs vector3 for velocity but idk how to convert velocity for vector3.
in coblocks, we can use "push (item) to direction with velocity " but in typescript we have to input “applyImpulseLocal(item, direction, vector3)” idk if there is someone can help me converting “push (item) to direction 0, 1, 0 with velocity 20” to typescript? really thank you.

Hi @H_Pneu,

you can use applyForce for pushing objects. The parameter is 3D force vector. In your case it will be: (0, 20, 0):
physics.applyForce(new Vector3(0,20,0))

Please, refer to for more information about physic’s methods.