24 #ifndef PHYSXSCHEMA_GENERATED_PHYSXPARTICLESYSTEM_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXPARTICLESYSTEM_H
31 #include "pxr/usd/usdGeom/gprim.h"
32 #include "pxr/usd/usd/prim.h"
33 #include "pxr/usd/usd/stage.h"
36 #include "pxr/base/vt/value.h"
38 #include "pxr/base/gf/vec3d.h"
39 #include "pxr/base/gf/vec3f.h"
40 #include "pxr/base/gf/matrix4d.h"
42 #include "pxr/base/tf/token.h"
43 #include "pxr/base/tf/type.h"
45 PXR_NAMESPACE_OPEN_SCOPE
65 static const UsdSchemaType
schemaType = UsdSchemaType::ConcreteTyped;
80 : UsdGeomGprim(schemaObj)
92 static const TfTokenVector &
106 Get(
const UsdStagePtr &stage,
const SdfPath &path);
132 Define(
const UsdStagePtr &stage,
const SdfPath &path);
143 friend class UsdSchemaRegistry;
145 static const TfType &_GetStaticTfType();
147 static bool _IsTypedSchema();
151 const TfType &_GetTfType()
const override;
223 UsdAttribute
CreateRestOffsetAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
319 UsdAttribute
CreateEnableCCDAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
390 UsdAttribute
CreateWindAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
436 UsdAttribute
CreateMaxVelocityAttr(VtValue
const &defaultValue = VtValue(),
bool writeSparsely=
false)
const;
512 PXR_NAMESPACE_CLOSE_SCOPE
PhysxSchemaPhysxParticleSystem(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxParticleSystem on UsdPrim prim .
PHYSXSCHEMA_API UsdAttribute GetParticleContactOffsetAttr() const
Contact offset used for interactions between particles.
PHYSXSCHEMA_API UsdAttribute CreateMaxNeighborhoodAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxNeighborhoodAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetFluidRestOffsetAttr() const
Rest offset used for fluid-fluid particle interactions.
PHYSXSCHEMA_API UsdAttribute GetRestOffsetAttr() const
Rest offset used for collisions with non-particle objects such as rigid or deformable bodies...
PHYSXSCHEMA_API UsdAttribute GetEnableCCDAttr() const
Enable continuous collision detection for particles to help avoid tunneling effects.
PHYSXSCHEMA_API UsdAttribute GetSolidRestOffsetAttr() const
Rest offset used for solid-solid or solid-fluid particle interactions.
PHYSXSCHEMA_API UsdAttribute CreateContactOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetContactOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetNonParticleCollisionEnabledAttr() const
Enable or disable particle collision with nonparticle objects for all particles in the system...
PHYSXSCHEMA_API UsdAttribute CreateWindAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetWindAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
PHYSXSCHEMA_API UsdAttribute CreateMaxDepenetrationVelocityAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxDepenetrationVelocityAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Cre...
PHYSXSCHEMA_API UsdAttribute CreateRestOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetRestOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateMaxVelocityAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxVelocityAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static const UsdSchemaType schemaType
Compile time constant representing what kind of schema this class is.
PHYSXSCHEMA_API UsdAttribute CreateFluidRestOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetFluidRestOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
WARNING: This is a draft API; the design is not fixed and may change in the future.
PHYSXSCHEMA_API UsdAttribute GetMaxNeighborhoodAttr() const
The particle neighborhood size.
PHYSXSCHEMA_API UsdAttribute GetGlobalSelfCollisionEnabledAttr() const
If True, self collisions follow particle-object-specific settings.
PHYSXSCHEMA_API UsdAttribute GetMaxVelocityAttr() const
Maximum particle velocity.
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxParticleSystem()
Destructor.
PHYSXSCHEMA_API UsdAttribute GetSolverPositionIterationCountAttr() const
Number of solver iterations for position.
static PHYSXSCHEMA_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...
PHYSXSCHEMA_API UsdAttribute CreateEnableCCDAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetEnableCCDAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static PHYSXSCHEMA_API PhysxSchemaPhysxParticleSystem Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxParticleSystem holding the prim adhering to this schema at path on stage...
PHYSXSCHEMA_API UsdAttribute CreateSolverPositionIterationCountAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSolverPositionIterationCountAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs...
PHYSXSCHEMA_API UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
PHYSXSCHEMA_API UsdAttribute CreateSolidRestOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSolidRestOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdRelationship GetSimulationOwnerRel() const
Single PhysicsScene that simulates this particle system.
PHYSXSCHEMA_API UsdAttribute CreateParticleSystemEnabledAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetParticleSystemEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetWindAttr() const
The wind applied to the current particle system.
PHYSXSCHEMA_API UsdAttribute CreateParticleContactOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetParticleContactOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdRelationship CreateSimulationOwnerRel() const
See GetSimulationOwnerRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateGlobalSelfCollisionEnabledAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetGlobalSelfCollisionEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs C...
PhysxSchemaPhysxParticleSystem(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxParticleSystem on the prim held by schemaObj .
PHYSXSCHEMA_API UsdAttribute GetParticleSystemEnabledAttr() const
Enable or disable the particle system.
PHYSXSCHEMA_API UsdAttribute GetMaxDepenetrationVelocityAttr() const
The maximum velocity permitted to be introduced by the solver to depenetrate intersecting particles...
PHYSXSCHEMA_API UsdAttribute GetContactOffsetAttr() const
Contact offset used for collisions with non-particle objects such as rigid or deformable bodies...
PHYSXSCHEMA_API UsdAttribute CreateNonParticleCollisionEnabledAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetNonParticleCollisionEnabledAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs ...
static PHYSXSCHEMA_API PhysxSchemaPhysxParticleSystem Define(const UsdStagePtr &stage, const SdfPath &path)
Attempt to ensure a UsdPrim adhering to this schema at path is defined (according to UsdPrim::IsDefin...