Permalink
Browse files

Applied patch #3026121: Actuator Array bug fix

  • Loading branch information...
1 parent 66367b5 commit a80e4643e14b1893cf6bf3a14f9dc8924e39cba9 Rich Mattes committed Sep 15, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 libstage/model_actuator.cc
@@ -78,6 +78,9 @@ ModelActuator::ModelActuator( World* world,
// sensible position defaults
this->SetVelocity( Velocity(0,0,0,0) );
this->SetBlobReturn(true);
+
+ // Allow the models to move
+ VelocityEnable();
}
@@ -192,6 +195,9 @@ void ModelActuator::Update( void )
CurrentPose.z - InitialPose.z,
CurrentPose.a - InitialPose.a );
+ cosa = cos(InitialPose.a);
+ sina = sin(InitialPose.a);
+
switch (actuator_type)
{
case TYPE_LINEAR:

0 comments on commit a80e464

Please sign in to comment.