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 - WebIDL type: PxIDENTITYEnum [enum]
      • PxTransform

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

      • wrapPointer

        public static PxTransform wrapPointer​(long address)
      • createAt

        public static PxTransform createAt​(long address,
                                           int r)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        r - WebIDL type: PxIDENTITYEnum [enum]
        Returns:
        Stack allocated object of PxTransform
      • createAt

        public static <T> PxTransform createAt​(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 - WebIDL type: PxIDENTITYEnum [enum]
        Returns:
        Stack allocated object of PxTransform
      • createAt

        public static PxTransform createAt​(long address,
                                           PxVec3 p0,
                                           PxQuat q0)
        Parameters:
        address - Pre-allocated memory, where the object is created.
        p0 - WebIDL type: PxVec3 [Const, Ref]
        q0 - WebIDL type: PxQuat [Const, Ref]
        Returns:
        Stack allocated object of PxTransform
      • createAt

        public static <T> PxTransform createAt​(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 - WebIDL type: PxVec3 [Const, Ref]
        q0 - WebIDL type: PxQuat [Const, Ref]
        Returns:
        Stack allocated object of PxTransform
      • destroy

        public void destroy()
      • getQ

        public PxQuat getQ()
        Returns:
        WebIDL type: PxQuat [Value]
      • setQ

        public void setQ​(PxQuat value)
        Parameters:
        value - WebIDL type: PxQuat [Value]
      • getP

        public PxVec3 getP()
        Returns:
        WebIDL type: PxVec3 [Value]
      • setP

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