Raycasting
https://wiki.jmonkeyengine.org/docs/jme3/advanced/collision_and_intersection.html#intersection
Raycasting
https://wiki.jmonkeyengine.org/docs/jme3/advanced/collision_and_intersection.html#intersection
Ah, so I would set linear velocity to the normal contact point?
Also, the ray stars from the center of the spatial, but in which direction does it go?
EDIT:
Alright, so this is how far I got.
Basically I shoot a ray in all 6 directions and see if it collidies but it doesnt seemt o work
Have no idea, would appreaciate it if someone could take a look
I’ve decided I’m not good enuf at math for this
I think kinematics with some work will do the trick instead!