I'm creating a player class and I need to use the ray. So there is my problem.
I've been debugging for a long time to find out where was my problem and I realise it has something to do with the coordinates.
I'm using a segment
seg. origin = owner.Position;
seg.delta = Vector3.unitY*-5
but it won't work because Vector3.unitY = (0,1,0)
but when I use seg.delta = new vector3 (1,0,1);
It would work for a bit.
I'm using a controller to make my player hovering over the ground.
So my problem is that jiglibX confused x axis and Y axis.
I don't really know how to solve the problem.
I try to use this code into jiggleGame and it works. So the problem is from my engine. but how and engine change the data ?
Also the car is working so maybe it's the way I set the segment function.
Do I need to transform in some way the ray to have the right corrdinate ?