Since moving a character on uneven terrain is exactly what I need to accomplish, I wanted to try using this; however, I’m having trouble figuring out why it’s not actually doing anything. I assume the repositioning is supposed to be automatic every frame, but it’s not happening. I copy-pasted the code from the labyrinth sample to get the ray pointing down, then just run
Well, you do have to set up the CollisionHandlerFloor to tell it which node it should reposition each frame, and then add it to the CollisionTraverser, and so on. But other than that setup work, yes, it’s automatic.
(self.ralphGroundCol is the CollisionNode attached to the character that contains the CollisionRay)? Or is there something I have to call on the handler specifically? I didn’t see anything promising in the API.