I am trying to implement JigLibX into my project however I am struggling to get it to work. I want to add physics to my main character so to do this I added in the physics object class, box object class and some extra properties for position etc. however this didn't work. To make my character move I tried doing this:
Vector3 value = physicsObject.PhysicsBody.Position + Direction * movement * (float)e.Time.ElapsedGameTime.TotalMilliseconds * 3.0f; physicsObject.PhysicsBody.MoveTo(value, physicsObject.PhysicsBody.Orientation);
my player moved around properly but this stopped gravity from being applied to my character for some reason.
So I downloaded the Character example and added the character object class and tried doing
CharacterObject.CharacterBody.DesiredVelocity = Direction * movement * (float)e.Time.ElapsedGameTime.TotalMilliseconds * 3.0f;
But this made my character move so slow it looks like he is not moving at all. However gravity now applies to my Character.
Can anyone give me any suggestions on what im doing wrong, or if there are any other examples that I could look at?