Package physx.common

Class PxBase

Direct Known Subclasses:
PxActor, PxAggregate, PxArticulationJointReducedCoordinate, PxArticulationReducedCoordinate, PxArticulationSensor, PxArticulationTendon, PxBVH, PxConstraint, PxJoint, PxParticleBuffer, PxRefCounted

public class PxBase extends NativeObject
Base class for objects that can be members of a PxCollection.

All PxBase sub-classes can be serialized.

See Also:
  • Field Details

    • SIZEOF

      public static final int SIZEOF
    • ALIGNOF

      public static final int ALIGNOF
      See Also:
  • Constructor Details

    • PxBase

      protected PxBase()
    • PxBase

      protected PxBase(long address)
  • Method Details

    • wrapPointer

      public static PxBase wrapPointer(long address)
    • arrayGet

      public static PxBase arrayGet(long baseAddress, int index)
    • release

      public void release()
      Releases the PxBase instance, please check documentation of release in derived class.
    • getConcreteTypeName

      public String getConcreteTypeName()
      Returns string name of dynamic type.
      Returns:
      Class name of most derived type of this object.
    • getConcreteType

      public int getConcreteType()
      Returns concrete type of object.
      Returns:
      PxConcreteType::Enum of serialized object
    • setBaseFlag

      public void setBaseFlag(PxBaseFlagEnum flag, boolean value)
      Set PxBaseFlag
      Parameters:
      flag - The flag to be set
      value - The flags new value
    • setBaseFlags

      public void setBaseFlags(PxBaseFlags inFlags)
      Set PxBaseFlags
      Parameters:
      inFlags - The flags to be set
      See Also:
    • getBaseFlags

      public PxBaseFlags getBaseFlags()
      Returns PxBaseFlags
      Returns:
      PxBaseFlags
      See Also:
    • isReleasable

      public boolean isReleasable()
      Whether the object is subordinate.

      A class is subordinate, if it can only be instantiated in the context of another class.

      Returns:
      Whether the class is subordinate