Hi.
I'm new around here and am trying to make a simple engine with Newton objects.
I've copied the player controller tutorial and integrated it rather easily, until I got two problems...
1 - Deleting a newton body with NewtonDestroyBody crashes when the body has a CustomPlayerController with a max stair step factor of 0.
This is very easy to reproduce. The problem is that I need to have the step factor of 0. My player is a sphere and not a cylinder. When it collides with enemies, which are also spheric CustomPlayerControllers, they climb on top of each other regardless of height. The tutorial uses a cylinder, which I expect, fixes the climbing problem, but this brings me to problem 2, which is the reason I use the sphere.
2 - I can't move a player with a cylinder body in a world where Z is up (towards the sky or ground).
When I create the cylinder with NewtonCreateCylinder, it's laying on the ground like a sewer pipe instead of standing upright like a telephone pole. I suspect that it's because I use Z for up. So, I rotated the matrix. Now it's properly orientated, but whatever I do (changing the CustomPlayerController orientation), the player refuses to move. If I leave it on the ground, with no rotation, the player moves fine (except that the edges of the cylinder scratch the walls...).
What's the proper way of doing all this? Can anyone help?