Class ODESimulatorPtr


  • public class ODESimulatorPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • ODESimulatorPtr

        public ODESimulatorPtr​(long cPtr,
                               boolean cMemoryOwn)
      • ODESimulatorPtr

        public ODESimulatorPtr()
        Default constructor yielding a NULL-pointer.
      • ODESimulatorPtr

        public ODESimulatorPtr​(ODESimulator ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

        public ODESimulator deref()
        The pointer stored in the object.
      • __ref__

        public ODESimulator __ref__()
        Dereferencing operator.
      • getDeref

        public ODESimulator getDeref()
        Member access operator.
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • step

        public void step​(double dt,
                         State state)
      • resetScene

        public void resetScene​(State state)
      • initPhysics

        public void initPhysics​(State state)
      • exitPhysics

        public void exitPhysics()
      • getTime

        public double getTime()
      • setEnabled

        public void setEnabled​(BodyPtr body,
                               boolean enabled)
      • setDynamicsEnabled

        public void setDynamicsEnabled​(BodyPtr body,
                                       boolean enabled)
      • emitPropertyChanged

        public void emitPropertyChanged()
      • addBody

        public void addBody​(BodyPtr body,
                            State state)
      • isInitialized

        public boolean isInitialized()
      • disableCollision

        public void disableCollision​(BodyPtr b1,
                                     BodyPtr b2)
      • enableCollision

        public void enableCollision​(BodyPtr b1,
                                    BodyPtr b2)
      • getGravity

        public Vector3D getGravity()
      • setContactLoggingEnabled

        public void setContactLoggingEnabled​(boolean enable)
      • getContactCnt

        public int getContactCnt()
      • getMaxSeperatingDistance

        public double getMaxSeperatingDistance()