PxDeformableAttachment#
Defined in include/PxDeformableAttachment.h
-
class PxDeformableAttachment : public PxBase#
PxDeformableAttachment class representing an attachment for deformable actors.
An attachment is a collection of one or more positional constraints between a point on one actor and a point on another actor.
Public Functions
-
virtual void getActors(PxActor *&actor0, PxActor *&actor1) const = 0#
Gets the two actors for this attachment.
- Parameters:
actor0 – [out] The first actor, may be NULL
actor1 – [out] The second actor, may be NULL
-
virtual void updatePose(const PxTransform &pose) = 0#
Updates the pose of the attachment.
- Parameters:
pose – [in] Pose relative to world or rigid actor transform. Valid only for attachment against world or rigid actor.
-
inline virtual const char *getConcreteTypeName() const override#
Returns string name of PxDeformableAttachment, used for serialization.
-
virtual void release() = 0#
Releases the PxBase instance, please check documentation of release in derived class.
-
inline PxType getConcreteType() const#
Returns concrete type of object.
See also
- Returns:
PxConcreteType::Enum of serialized object
-
inline void setBaseFlag(PxBaseFlag::Enum flag, bool value)#
Set PxBaseFlag
- Parameters:
flag – [in] The flag to be set
value – [in] The flags new value
-
inline void setBaseFlags(PxBaseFlags inFlags)#
Set PxBaseFlags
See also
PxBaseFlags
- Parameters:
inFlags – [in] The flags to be set
-
inline PxBaseFlags getBaseFlags() const#
Returns PxBaseFlags.
See also
PxBaseFlags
- Returns:
PxBaseFlags
-
inline virtual bool isReleasable() const#
Whether the object is subordinate.
A class is subordinate, if it can only be instantiated in the context of another class.
See also
- Returns:
Whether the class is subordinate
Public Members
-
void *userData#
user can assign this to whatever, usually to create a 1:1 relationship with a user object.
Protected Functions
-
inline virtual ~PxDeformableAttachment()#
- inline PxDeformableAttachment(
- PxType concreteType,
- PxBaseFlags baseFlags,
Constructor.
-
inline PxDeformableAttachment(PxBaseFlags baseFlags)#
Deserialization constructor.
-
inline virtual bool isKindOf(const char *name) const override#
Returns whether a given type name matches with the type of this instance.
-
template<class T>
inline bool typeMatch() const#
-
virtual void getActors(PxActor *&actor0, PxActor *&actor1) const = 0#