Class PxContactPoint

java.lang.Object
physx.NativeObject
physx.geometry.PxContactPoint

public class PxContactPoint extends NativeObject
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxContactPoint

      protected PxContactPoint(long address)
    • PxContactPoint

      public PxContactPoint()
  • Method Details

    • wrapPointer

      public static PxContactPoint wrapPointer(long address)
    • arrayGet

      public static PxContactPoint arrayGet(long baseAddress, int index)
    • destroy

      public void destroy()
    • getNormal

      public PxVec3 getNormal()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setNormal

      public void setNormal(PxVec3 value)
      Parameters:
      value - WebIDL type: PxVec3 [Value]
    • getPoint

      public PxVec3 getPoint()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setPoint

      public void setPoint(PxVec3 value)
      Parameters:
      value - WebIDL type: PxVec3 [Value]
    • getTargetVel

      public PxVec3 getTargetVel()
      Returns:
      WebIDL type: PxVec3 [Value]
    • setTargetVel

      public void setTargetVel(PxVec3 value)
      Parameters:
      value - WebIDL type: PxVec3 [Value]
    • getSeparation

      public float getSeparation()
      The separation of the shapes at the contact point. A negative separation denotes a penetration.
    • setSeparation

      public void setSeparation(float value)
      The separation of the shapes at the contact point. A negative separation denotes a penetration.
    • getMaxImpulse

      public float getMaxImpulse()
      The max impulse permitted at this point
    • setMaxImpulse

      public void setMaxImpulse(float value)
      The max impulse permitted at this point
    • getStaticFriction

      public float getStaticFriction()
      The static friction coefficient
    • setStaticFriction

      public void setStaticFriction(float value)
      The static friction coefficient
    • getMaterialFlags

      public byte getMaterialFlags()
    • setMaterialFlags

      public void setMaterialFlags(byte value)
    • getInternalFaceIndex1

      public int getInternalFaceIndex1()
      The surface index of shape 1 at the contact point. This is used to identify the surface material.

      Note: This field is only supported by triangle meshes and heightfields, else it will be set to PXC_CONTACT_NO_FACE_INDEX. Note: This value must be directly after internalFaceIndex0 in memory

    • setInternalFaceIndex1

      public void setInternalFaceIndex1(int value)
      The surface index of shape 1 at the contact point. This is used to identify the surface material.

      Note: This field is only supported by triangle meshes and heightfields, else it will be set to PXC_CONTACT_NO_FACE_INDEX. Note: This value must be directly after internalFaceIndex0 in memory

    • getDynamicFriction

      public float getDynamicFriction()
      The dynamic friction coefficient
    • setDynamicFriction

      public void setDynamicFriction(float value)
      The dynamic friction coefficient
    • getRestitution

      public float getRestitution()
      The restitution coefficient
    • setRestitution

      public void setRestitution(float value)
      The restitution coefficient
    • getDamping

      public float getDamping()
    • setDamping

      public void setDamping(float value)