Hi, I could very well be using the function wrong, but I was shooting out objects similar to what's done in the demo game.
in the demo, the following code is used:
PhysicObject physObj = SpawnPrimitive(camera.Position, Matrix.CreateRotationX(0.5f)); physObj.PhysicsBody.Velocity = (camera.Target - camera.Position) * 20.0f; Components.Add(physObj);
for various reasons I want to accomplish the same purpose of "shooting" an object, but using something similar to the following:
PhysicObject physObj = SpawnPrimitive(camera.Position, Matrix.CreateRotationX(0.5f)); physObj.PhysicsBody.AddForce (Vector3.UnitZ * 30); Components.Add(physObj);
but changing the code to such caused the box to spawn and immediately fall to the ground.