Class DefaultPhysicsSpace<T>

    • Field Detail

      • collisionConfiguration

        protected com.bulletphysics.collision.dispatch.CollisionConfiguration collisionConfiguration
      • dispatcher

        protected com.bulletphysics.collision.dispatch.CollisionDispatcher dispatcher
      • solver

        protected com.bulletphysics.dynamics.constraintsolver.SequentialImpulseConstraintSolver solver
      • dynamicsWorld

        protected com.bulletphysics.dynamics.DiscreteDynamicsWorld dynamicsWorld
      • bodyToObjectMap

        protected HashMap<com.bulletphysics.dynamics.RigidBody,​T> bodyToObjectMap
      • objectToBodyMap

        protected HashMap<T,​com.bulletphysics.dynamics.RigidBody> objectToBodyMap
      • stepSize

        protected float stepSize
      • maxSubSteps

        protected int maxSubSteps
    • Constructor Detail

      • DefaultPhysicsSpace

        public DefaultPhysicsSpace​(String name,
                                   ContinuousAdder<T> adder,
                                   PointTranslator translator,
                                   double xdim,
                                   double ydim,
                                   double zdim)
        Constructs this space with the specified name, adder, translator, and size.
        Parameters:
        name - the name of the space
        adder - the adder used by the space
        translator - the point translator
        xdim - the size of the x dimension
        ydim - the size of the y dimension
        zdim - the size of the z dimension
      • DefaultPhysicsSpace

        public DefaultPhysicsSpace​(String name,
                                   ContinuousAdder<T> adder,
                                   PointTranslator translator,
                                   double[] size,
                                   double[] origin)
        Constructs this space with the specified name, adder, translator, size and origin.
        Parameters:
        name - the name of the space
        adder - the adder used by the space
        translator - the point translator
        size - the dimensions of the space
        origin - the origin of the space