RESOLVED: Character controllers can’t be moved?

Software: Away3D 4.x

Alex Bogartz, Sr. Member
Posted: 19 September 2011 08:11 PM   Total Posts: 216

I have a character controller, and there’s a moving object that runs into it that’s working with a constraint.  When the moving object hits the character, the character acts as a “block” and both objects stop.  I want the character to be moved by the object.  Is there a setting for this?

Thanks!

   

John Brookes, Moderator
Posted: 19 September 2011 10:15 PM   Total Posts: 732   [ # 1 ]

Kinematic things dont move when objects hit them. Forces have no effect.
No idea on whats the solution not used character much yet.

   

Alex Bogartz, Sr. Member
Posted: 19 September 2011 10:20 PM   Total Posts: 216   [ # 2 ]

Here it is:

constrainedBody.collisionFlags = AWPCollisionFlags.CF_NO_CONTACT_RESPONSE;

If you set the constrained object to no contact response, it pushes the character around, which is what I wanted.

stepBody.linearFactor=new Vector3D(1,0,0)
     
stepBody.collisionFlags AWPCollisionFlags.CF_NO_CONTACT_RESPONSE;
     
generic6Dof = new AWPGeneric6DofConstraint(stepBody, new Vector3D(stepBody.position.x), new Matrix3D());
     
generic6Dof.setLinearLimit(new Vector3D((stepBody.position.2000), 00), new Vector3D((stepBody.position.x), 00));
     
generic6Dof.setAngularLimit(new Vector3D(), new Vector3D());
     
generic6Dof.getTranslationalLimitMotor().enableMotorX true;
     
generic6Dof.getTranslationalLimitMotor().targetVelocity = new Vector3D(100000);
     
generic6Dof.getTranslationalLimitMotor().maxMotorForce = new Vector3D(1500);
     
generic6Dof.xLimitReached.add(reverseLedge)
     
physicsWorld.addConstraint(generic6Doftrue);
     
constraints.push(generic6Dof
   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X