I'm having a very strange problem in 3.5 stable, Ive been working on my project for months but this just started happening a few days ago. There's two issues:
- move_and_slide() causes a kinematic body to slide(no incline) when called with Vector3.zero
- move_and_slide() moves the kinematic body in the opposite direction than it's supposed to
The strangest thing of this all is that it's not happening with all objects. I have other kinematic bodies in my project that it's not happening to. Those operate fine. It's a particular class only that's exhibiting this behavior.
Is there some object property or editor property that may cause objects to move in the polar opposite direction from what's sent to move_and_slide()?
Some of you like to see code. Well here's the code where I'm seeing the issue, but it's not very helpful.
if name == "zombieb":
move_and_slide(Vector3.ZERO, Vector3(0, 1, 0), true)
The object should be still but it's sliding across the ground. Only way to prevent is to remove move_and_slide. Anyone else experienced something similar?