Package com.bulletphysics.dynamics.constraintsolver

Examples of com.bulletphysics.dynamics.constraintsolver.TypedConstraint


      {
        int i;
        int numConstraints = constraints.size();
        for (i = 0; i < numConstraints; i++) {
          TypedConstraint constraint = constraints.getQuick(i);

          RigidBody colObj0 = constraint.getRigidBodyA();
          RigidBody colObj1 = constraint.getRigidBodyB();

          if (((colObj0 != null) && (!colObj0.isStaticOrKinematicObject())) &&
            ((colObj1 != null) && (!colObj1.isStaticOrKinematicObject())))
          {
            if (colObj0.isActive() || colObj1.isActive()) {
View Full Code Here


    if (otherRb == null) {
      return true;
    }

    for (int i = 0; i < constraintRefs.size(); ++i) {
      TypedConstraint c = constraintRefs.getQuick(i);
      if (c.getRigidBodyA() == otherRb || c.getRigidBodyB() == otherRb) {
        return false;
      }
    }

    return true;
View Full Code Here

TOP

Related Classes of com.bulletphysics.dynamics.constraintsolver.TypedConstraint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.