java.lang.Object
physx.NativeObject
physx.common.PxBase
- Direct Known Subclasses:
PxActor,PxAggregate,PxArticulationJointReducedCoordinate,PxArticulationReducedCoordinate,PxArticulationTendon,PxBVH,PxConstraint,PxJoint,PxParticleBuffer,PxRefCounted
Base class for objects that can be members of a PxCollection.
All PxBase sub-classes can be serialized.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxBasearrayGet(long baseAddress, int index) Returns PxBaseFlagsintReturns concrete type of object.Returns string name of dynamic type.booleanWhether the object is subordinate.voidrelease()Releases the PxBase instance, please check documentation of release in derived class.voidsetBaseFlag(PxBaseFlagEnum flag, boolean value) Set PxBaseFlagvoidsetBaseFlags(PxBaseFlags inFlags) Set PxBaseFlagsstatic PxBasewrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
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
-
arrayGet
-
release
public void release()Releases the PxBase instance, please check documentation of release in derived class. -
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
Set PxBaseFlag- Parameters:
flag- The flag to be setvalue- The flags new value
-
setBaseFlags
Set PxBaseFlags- Parameters:
inFlags- The flags to be set- See Also:
-
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
-