Package physx.common

Class PxTransform

    • Field Detail

      • SIZEOF

        public static final int SIZEOF
    • Constructor Detail

      • PxTransform

        protected PxTransform()
      • PxTransform

        protected PxTransform​(long address)
      • PxTransform

        public PxTransform​(int r)
        Parameters:
        r - PxIDENTITYEnum [enum]
      • PxTransform

        public PxTransform​(PxVec3 p0,
                           PxQuat q0)
        Parameters:
        p0 - PxVec3 [Const, Ref]
        q0 - PxQuat [Const, Ref]
    • Method Detail

      • wrapPointer

        public static PxTransform wrapPointer​(long address)
      • malloc

        public static PxTransform malloc​(long address,
                                         int r)
        Parameters:
        address - where the object is allocated
        r - PxIDENTITYEnum [enum]
        Returns:
        Stack allocated object of PxTransform
      • malloc

        public static <T> PxTransform malloc​(T allocator,
                                             NativeObject.Allocator<T> allocate,
                                             int r)
        Type Parameters:
        T - Allocator class, e.g. LWJGL's MemoryStack.
        Parameters:
        allocator - object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
        allocate - method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
        r - PxIDENTITYEnum [enum]
        Returns:
        Stack allocated object of PxTransform
      • malloc

        public static PxTransform malloc​(long address,
                                         PxVec3 p0,
                                         PxQuat q0)
        Parameters:
        address - where the object is allocated
        p0 - PxVec3 [Const, Ref]
        q0 - PxQuat [Const, Ref]
        Returns:
        Stack allocated object of PxTransform
      • malloc

        public static <T> PxTransform malloc​(T allocator,
                                             NativeObject.Allocator<T> allocate,
                                             PxVec3 p0,
                                             PxQuat q0)
        Type Parameters:
        T - Allocator class, e.g. LWJGL's MemoryStack.
        Parameters:
        allocator - object to use for allocation, e.g. an instance of LWJGL's MemoryStack.
        allocate - method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.
        p0 - PxVec3 [Const, Ref]
        q0 - PxQuat [Const, Ref]
        Returns:
        Stack allocated object of PxTransform
      • destroy

        public void destroy()
      • setQ

        public void setQ​(PxQuat value)
        Parameters:
        value - PxQuat [Value]
      • setP

        public void setP​(PxVec3 value)
        Parameters:
        value - PxVec3 [Value]