Beispiel #1
0
        public bool IsCollisionEnabled(IBody rigidBody1, IBody rigidBody2)
        {
            if (gameObjectMap.ContainsKey(rigidBody1) && gameObjectMap.ContainsKey(rigidBody2))
            {
                return(LayerCollisionMatrix.CollisionEnabled(gameObjectMap[rigidBody1], gameObjectMap[rigidBody2]));
            }

            return(true);
        }
 /**
  *  @brief Check if the collision between two RigidBodies is enabled.
  *
  *  @param rigidBody1 First {@link RigidBody}
  *  @param rigidBody2 Second {@link RigidBody}
  **/
 public bool IsCollisionEnabled(IBody rigidBody1, IBody rigidBody2)
 {
     return(LayerCollisionMatrix.CollisionEnabled(gameObjectMap[rigidBody1], gameObjectMap[rigidBody2]));
 }