Page 1 of 1
How to apply force? How to constraint point in world space?
Posted: Wed Jul 06, 2011 11:09 pm
by tksuoran
How do I apply a force on entity, given location and force vector?
How do I constrain entity local point to a point in world space, which I move?
Re: How to apply force? How to constraint point in world spa
Posted: Wed Jul 06, 2011 11:45 pm
by Norbo
How do I apply a force on entity, given location and force vector?
Entity.ApplyImpulse will do the trick.
How do I constrain entity local point to a point in world space, which I move?
The best option is probably the SingleEntityLinearMotor. An example of its usage can be found in the BEPUphysicsDemos project (which comes in the main BEPUphysics source download) in the MotorizedGrabSpring class, which the demos use to pick up objects and toss them around.