usdrt::PhysxSchemaPhysxPhysicsAttachment
Defined in usdrt/scenegraph/usd/physxSchema/physxPhysicsAttachment.h
Functions
usdrt::PhysxSchemaPhysxPhysicsAttachment::CreateActor0Rel: See GetActor0Rel() , and also Create vs Get Property Methods for when to use Get vs Create.
usdrt::PhysxSchemaPhysxPhysicsAttachment::CreateActor1Rel: See GetActor1Rel() , and also Create vs Get Property Methods for when to use Get vs Create.
usdrt::PhysxSchemaPhysxPhysicsAttachment::CreateAttachmentEnabledAttr: See GetAttachmentEnabledAttr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxPhysicsAttachment::CreateCollisionFilterIndices0Attr: See GetCollisionFilterIndices0Attr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxPhysicsAttachment::CreateCollisionFilterIndices1Attr: See GetCollisionFilterIndices1Attr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxPhysicsAttachment::CreateFilterType0Attr: See GetFilterType0Attr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxPhysicsAttachment::CreateFilterType1Attr: See GetFilterType1Attr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxPhysicsAttachment::CreatePoints0Attr: See GetPoints0Attr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxPhysicsAttachment::CreatePoints1Attr: See GetPoints1Attr() , and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute's default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.usdrt::PhysxSchemaPhysxPhysicsAttachment::Define: Attempt to ensure a UsdPrim adhering to this schema at
path
is defined (according to UsdPrim::IsDefined()) on this stage.usdrt::PhysxSchemaPhysxPhysicsAttachment::GetActor0Rel: Reference to the first actor.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetActor1Rel: Reference to the second actor.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetAttachmentEnabledAttr: Enable or disable the attachment.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetCollisionFilterIndices0Attr: Indices to geometry of Actor 0 that should not generate collisions with Actor 1 as specified by filterType0. Ignored for rigid bodies.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetCollisionFilterIndices1Attr: Indices to mesh triangle/tet/hex/etc. of Actor 1 that should not generate collisions with Actor 0. Ignored for rigid bodies.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetFilterType0Attr: Specify if indices in collisionFilterIndices0 correspond to vertices; or mesh cell-geometry, i.e. triangles, tetrahedrons, etc.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetFilterType1Attr: Specify if indices in collisionFilterIndices1 correspond to vertices; or mesh cell-geometry, i.e. triangles, tetrahedrons, etc.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPath: Return the SdfPath to this schema object's held prim.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetPoints0Attr: Attachment points in Actor 0 local space, defined in the actor's rest state, if it is deformable. Elements correspond one-to-one to elements in points1 attribute.
usdrt::PhysxSchemaPhysxPhysicsAttachment::GetPoints1Attr: Attachment points in Actor 1 local space, defined in the actor's rest state, if it is deformable. Elements correspond one-to-one to elements in points0 attribute.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPrim: Return this schema object's held prim.
usdrt::PhysxSchemaPhysxPhysicsAttachment::PhysxSchemaPhysxPhysicsAttachment: Construct a PhysxSchemaPhysxPhysicsAttachment on the prim held by
schemaObj
. Should be preferred over PhysxSchemaPhysxPhysicsAttachment (schemaObj.GetPrim()), as it preserves SchemaBase state.usdrt::PhysxSchemaPhysxPhysicsAttachment::PhysxSchemaPhysxPhysicsAttachment: Construct a PhysxSchemaPhysxPhysicsAttachment on UsdPrim
prim
. Equivalent to PhysxSchemaPhysxPhysicsAttachment::Get(prim.GetStage(), prim.GetPath()) for a validprim
, but will not immediately throw an error for an invalidprim
.usdrt::PhysxSchemaPhysxPhysicsAttachment::operator bool: Boolean operator.
usdrt::PhysxSchemaPhysxPhysicsAttachment::~PhysxSchemaPhysxPhysicsAttachment: Destructor.
Variables
usdrt::PhysxSchemaPhysxPhysicsAttachment::schemaType: Compile time constant representing what kind of schema this class is.
-
class PhysxSchemaPhysxPhysicsAttachment : public usdrt::UsdTyped
Represents attachments between physics actors, for example, between a rigid body and a deformable body, or a deformable body and a particle cloth. For any described attribute Fallback Value or Allowed Values below that are text/tokens, the actual token is published and defined in PhysxSchemaTokens. So to set an attribute to the value “rightHanded”, use PhysxSchemaTokens->rightHanded as the value.
Public Functions
-
inline explicit PhysxSchemaPhysxPhysicsAttachment(const UsdPrim &prim = UsdPrim())
Construct a PhysxSchemaPhysxPhysicsAttachment on UsdPrim
prim
. Equivalent to PhysxSchemaPhysxPhysicsAttachment::Get(prim.GetStage(), prim.GetPath()) for a validprim
, but will not immediately throw an error for an invalidprim
.
-
inline explicit PhysxSchemaPhysxPhysicsAttachment(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxPhysicsAttachment on the prim held by
schemaObj
. Should be preferred over PhysxSchemaPhysxPhysicsAttachment(schemaObj.GetPrim()), as it preserves SchemaBase state.
-
inline virtual ~PhysxSchemaPhysxPhysicsAttachment()
Destructor.
-
inline operator bool() const
Boolean operator.
- Returns
Return true if the contained prim is an instance of this schema using
IsA
, and false otherwise.
-
inline UsdAttribute GetAttachmentEnabledAttr() const
Enable or disable the attachment.
Declaration
bool attachmentEnabled = 1
C++ Type
bool
Usd Type
SdfValueTypeNames->Bool
-
inline UsdAttribute CreateAttachmentEnabledAttr() const
See GetAttachmentEnabledAttr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetPoints0Attr() const
Attachment points in Actor 0 local space, defined in the actor’s rest state, if it is deformable. Elements correspond one-to-one to elements in points1 attribute.
Declaration
point3f[] points0
C++ Type
VtArray<GfVec3f>
Usd Type
SdfValueTypeNames->Point3fArray
-
inline UsdAttribute CreatePoints0Attr() const
See GetPoints0Attr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetPoints1Attr() const
Attachment points in Actor 1 local space, defined in the actor’s rest state, if it is deformable. Elements correspond one-to-one to elements in points0 attribute.
Declaration
point3f[] points1
C++ Type
VtArray<GfVec3f>
Usd Type
SdfValueTypeNames->Point3fArray
-
inline UsdAttribute CreatePoints1Attr() const
See GetPoints1Attr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetCollisionFilterIndices0Attr() const
Indices to geometry of Actor 0 that should not generate collisions with Actor 1 as specified by filterType0. Ignored for rigid bodies.
Declaration
uint[] collisionFilterIndices0
C++ Type
VtArray<unsigned int>
Usd Type
SdfValueTypeNames->UIntArray
-
inline UsdAttribute CreateCollisionFilterIndices0Attr() const
See GetCollisionFilterIndices0Attr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetFilterType0Attr() const
Specify if indices in collisionFilterIndices0 correspond to vertices; or mesh cell-geometry, i.e. triangles, tetrahedrons, etc.
Declaration
uniform token filterType0
C++ Type
TfToken
Usd Type
SdfValueTypeNames->Token
Variability
SdfVariabilityUniform
Allowed Values
Vertices, Geometry
-
inline UsdAttribute CreateFilterType0Attr() const
See GetFilterType0Attr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetCollisionFilterIndices1Attr() const
Indices to mesh triangle/tet/hex/etc. of Actor 1 that should not generate collisions with Actor 0. Ignored for rigid bodies.
Declaration
uint[] collisionFilterIndices1
C++ Type
VtArray<unsigned int>
Usd Type
SdfValueTypeNames->UIntArray
-
inline UsdAttribute CreateCollisionFilterIndices1Attr() const
See GetCollisionFilterIndices1Attr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdAttribute GetFilterType1Attr() const
Specify if indices in collisionFilterIndices1 correspond to vertices; or mesh cell-geometry, i.e. triangles, tetrahedrons, etc.
Declaration
uniform token filterType1
C++ Type
TfToken
Usd Type
SdfValueTypeNames->Token
Variability
SdfVariabilityUniform
Allowed Values
Vertices, Geometry
-
inline UsdAttribute CreateFilterType1Attr() const
See GetFilterType1Attr(), and also Create vs Get Property Methods for when to use Get vs Create. If specified, author
defaultValue
as the attribute’s default, sparsely (when it makes sense to do so) ifwriteSparsely
istrue
- the default forwriteSparsely
isfalse
.
-
inline UsdRelationship GetActor0Rel() const
Reference to the first actor.
-
inline UsdRelationship CreateActor0Rel() const
See GetActor0Rel(), and also Create vs Get Property Methods for when to use Get vs Create.
-
inline UsdRelationship GetActor1Rel() const
Reference to the second actor.
-
inline UsdRelationship CreateActor1Rel() const
See GetActor1Rel(), and also Create vs Get Property Methods for when to use Get vs Create.
Public Static Functions
-
static inline PhysxSchemaPhysxPhysicsAttachment Define(const UsdStageRefPtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at
path
is defined (according to UsdPrim::IsDefined()) on this stage.
Public Static Attributes
-
static const UsdSchemaType schemaType = UsdSchemaType::ConcreteTyped
Compile time constant representing what kind of schema this class is.
See also
UsdSchemaType
-
inline explicit PhysxSchemaPhysxPhysicsAttachment(const UsdPrim &prim = UsdPrim())