Page 1 of 1

Apply impulse on an Entity with Motor attached

Posted: Sat Feb 04, 2012 1:43 am
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 !

Re: Apply impulse on an Entity with Motor attached

Posted: Sat Feb 04, 2012 1:47 am
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.