First i think i found a bug in it! And a weird one or i'm the one completly lost!
May someone explains me how this is logical?
Comments in Capsule.cs :
/ defines a capsule that is orientated along its body x direction, with its start at its position.
And the following piece of code:
public Vector3 GetEnd()
return transform.Position + length * transform.Orientation.Backward;
If comment is right.. code should be: return transform.Position + length * transform.Orientation.FORWARD;
Then is my problem, i just can't oriented my capsule! (might be related to that)
new Capsule( Vector3.Zero,
Matrix.CreateRotationZ((float)Math.PI / 2f),
This is not giving me a capsule oriented Upward and its base at 0! In facts in going to the +Z in xna!
I hope im the one complety lost!
Thanks in advance