Class OBBColliderPtr


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

      • OBBColliderPtr

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

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

        public OBBColliderPtr​(OBBCollider 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 OBBCollider deref()
        The pointer stored in the object.
      • __ref__

        public OBBCollider __ref__()
        Dereferencing operator.
      • getDeref

        public OBBCollider 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
      • collides

        public boolean collides​(OBB obbA,
                                OBB obbB,
                                Transform3D aTb)
        test if obbA intersects obbB. The aTb transform describe
        obbB relative to obbA's coordinate frame
      • inCollision

        public boolean inCollision​(OBB bvA,
                                   OBB bvB,
                                   Transform3D aTb)
        test if two bounding volumes are colliding
        Parameters:
        bvA - [in] bounding volume A
        bvB - [in] bounding volume B
        aTb - [in] transform from bvA to bvB
        Returns:
        true if in collision