Apply impulse on an Entity with Motor attached

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
thiago
Posts: 22
Joined: Sat Oct 16, 2010 10:32 pm

Apply impulse on an Entity with Motor attached

Post by thiago »

Hi,

Can i use the method applyImpulse on an entity with Motor.

Code: Select all

            mover = new EntityMover(Entity);
            rotator = new EntityRotator(Entity);            
///....

ApplyImpulse(position,force);
my impulse was somehow ignored.
If i use the Entity without the Mover or rotator, the force works great !!!

Is this behavior expected ?

Thanks in advance !
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Apply impulse on an Entity with Motor attached

Post by Norbo »

That is indeed expected behavior. The EntityMover and EntityRotator (or more precisely, the internal SingleEntityLinear/AngularMotor) together control every degree of freedom. They will fight the impulse in an attempt to achieve their goals. If the SingleEntityLinear/AngularMotor's spring settings are weakened, the impulse will have more of an effect.
Post Reply