How to apply force? How to constraint point in world space?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
tksuoran
Posts: 3
Joined: Tue Jul 05, 2011 1:46 pm

How to apply force? How to constraint point in world space?

Post 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?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: How to apply force? How to constraint point in world spa

Post 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.
Post Reply