Package physx.physics

Class PxMaterial


public class PxMaterial extends PxBaseMaterial
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxMaterial

      protected PxMaterial()
    • PxMaterial

      protected PxMaterial(long address)
  • Method Details

    • wrapPointer

      public static PxMaterial wrapPointer(long address)
    • arrayGet

      public static PxMaterial arrayGet(long baseAddress, int index)
    • getUserData

      public NativeObject getUserData()
      Returns:
      WebIDL type: VoidPtr
    • setUserData

      public void setUserData(NativeObject value)
      Parameters:
      value - WebIDL type: VoidPtr
    • setDynamicFriction

      public void setDynamicFriction(float coef)
      Parameters:
      coef - WebIDL type: float
    • getDynamicFriction

      public float getDynamicFriction()
      Returns:
      WebIDL type: float
    • setStaticFriction

      public void setStaticFriction(float coef)
      Parameters:
      coef - WebIDL type: float
    • getStaticFriction

      public float getStaticFriction()
      Returns:
      WebIDL type: float
    • setRestitution

      public void setRestitution(float coef)
      Parameters:
      coef - WebIDL type: float
    • getRestitution

      public float getRestitution()
      Returns:
      WebIDL type: float
    • setFlag

      public void setFlag(PxMaterialFlagEnum flag, boolean b)
      Parameters:
      flag - WebIDL type: PxMaterialFlagEnum [enum]
      b - WebIDL type: boolean
    • setFlags

      public void setFlags(PxMaterialFlags flags)
      Parameters:
      flags - WebIDL type: PxMaterialFlags [Ref]
    • getFlags

      public PxMaterialFlags getFlags()
      Returns:
      WebIDL type: PxMaterialFlags [Value]
    • setFrictionCombineMode

      public void setFrictionCombineMode(PxCombineModeEnum combMode)
      Parameters:
      combMode - WebIDL type: PxCombineModeEnum [enum]
    • getFrictionCombineMode

      public PxCombineModeEnum getFrictionCombineMode()
      Returns:
      WebIDL type: PxCombineModeEnum [enum]
    • setRestitutionCombineMode

      public void setRestitutionCombineMode(PxCombineModeEnum combMode)
      Parameters:
      combMode - WebIDL type: PxCombineModeEnum [enum]
    • getRestitutionCombineMode

      public PxCombineModeEnum getRestitutionCombineMode()
      Returns:
      WebIDL type: PxCombineModeEnum [enum]