I have created a sphere that has the radius 1,and masses 1 so no specially big masses or anything, but when I am adding torque to it, it isn't moving at all, no mather how much, directly the physics has been updated, the torque are back to 0,0,0 again. Does anyone have any idea whats is wrong?
Date: 25 Jun 2009 19:59
Number of posts: 8
RSS: New posts
Are you adding your forces using a PhysicsController? The forces need to be added during the controller's update loop, or they'll have no effect.
Also note that you need quite a bit of force. I usually start with around 20k.
Where can I read about PhysicsController?, I didnt find it in the jiglibX on a search. I tested with adding a couple of million in force so it is probably that i didnt do it inside PhysicsController that is causing it then
Ok now I have found your tutorial on the subject, and added the stuff it sounds like i need to add
this is the code i have added
public class Player : Controller
public override void UpdateController(float dt)
Body body = this.circle.body; // actually a sphere
Vector2 v2 = control.ThumbstickLeft;
Vector3 v3 = new Vector3(v2.X, 0, v2.Y);
public Player(PlayerIndex id)
control = new Control(id);
camera = new Camera();
ANy idea why it doesn't move anything?