usdrt::PhysxSchemaPhysxDiffuseParticlesAPI
Defined in usdrt/scenegraph/usd/physxSchema/physxDiffuseParticlesAPI.h
Functions
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::Apply: Applies this single-apply API schema to the given
prim
. This information is stored by adding "PhysxDiffuseParticlesAPI" to the token-valued, listOp metadata apiSchemas on the prim.usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::CreateAirDragAttr: See GetAirDragAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateBubbleDragAttr: See GetBubbleDragAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateBuoyancyAttr: See GetBuoyancyAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateCollisionDecayAttr: See GetCollisionDecayAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateDiffuseParticlesEnabledAttr: See GetDiffuseParticlesEnabledAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateDivergenceWeightAttr: See GetDivergenceWeightAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateKineticEnergyWeightAttr: See GetKineticEnergyWeightAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateLifetimeAttr: See GetLifetimeAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateMaxDiffuseParticleMultiplierAttr: See GetMaxDiffuseParticleMultiplierAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreatePressureWeightAttr: See GetPressureWeightAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateThresholdAttr: See GetThresholdAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::CreateUseAccurateVelocityAttr: See GetUseAccurateVelocityAttr() , 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::PhysxSchemaPhysxDiffuseParticlesAPI::GetAirDragAttr: Air drag force factor for spray particles. Range: [0, inf) Units: dimensionless.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetBubbleDragAttr: Fluid drag force factor for bubble particles. Range: [0, inf) Units: dimensionless.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetBuoyancyAttr: Buoyancy force factor for bubble particles. Range: [0, inf) Units: dimensionless.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetCollisionDecayAttr: Decay factor of diffuse particles' lifetime after they collide with shapes. 0 == lifetime remains unchanged, 1 == particle disappears immediately. Range: [0, 1] Units: dimensionless.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetDiffuseParticlesEnabledAttr: Enable or disable the creation of diffuse particles.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetDivergenceWeightAttr: Contribution from divergence when deciding diffuse particle creation. Range: [0, inf) Units: dimensionless.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetKineticEnergyWeightAttr: Contribution from kinetic energy when deciding diffuse particle creation. Range: [0, inf) Units: dimensionless.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetLifetimeAttr: Lifetime of a spawned particle before it is removed again. Range: [0, inf) Units: seconds.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetMaxDiffuseParticleMultiplierAttr: Maximum number of diffuse particles that can be present in the simulation relative to the number of non-diffuse particles. Range: [0.0, inf) Default value -inf means default is picked by the simulation.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPath: Return the SdfPath to this schema object's held prim.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetPressureWeightAttr: Contribution from pressure when deciding diffuse particle creation. Range: [0, inf) Units: dimensionless.
usdrt::DestructionSchemaDestructibleBaseAPI::GetPrim: Return this schema object's held prim.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetThresholdAttr: Kinetic energy threshold a particle must reach to spawn a diffuse particle. Range: [0, inf) Units: energy = mass * distance * distance / seconds / seconds.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::GetUseAccurateVelocityAttr: Enables accurate particle velocity estimation.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::PhysxSchemaPhysxDiffuseParticlesAPI: Construct a PhysxSchemaPhysxDiffuseParticlesAPI on the prim held by
schemaObj
. Should be preferred over PhysxSchemaPhysxDiffuseParticlesAPI (schemaObj.GetPrim()), as it preserves SchemaBase state.usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::PhysxSchemaPhysxDiffuseParticlesAPI: Construct a PhysxSchemaPhysxDiffuseParticlesAPI on UsdPrim
prim
. Equivalent to PhysxSchemaPhysxDiffuseParticlesAPI::Get(prim.GetStage(), prim.GetPath()) for a validprim
, but will not immediately throw an error for an invalidprim
.usdrt::DestructionSchemaDestructibleBaseAPI::_GetInstanceName: Returns the instance name of the API schema object belonging to a multiple-apply API schema.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::operator bool: Boolean operator.
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::~PhysxSchemaPhysxDiffuseParticlesAPI: Destructor.
Variables
usdrt::PhysxSchemaPhysxDiffuseParticlesAPI::schemaType: Compile time constant representing what kind of schema this class is.
-
class PhysxSchemaPhysxDiffuseParticlesAPI : public usdrt::UsdAPISchemaBase
WARNING: This is a draft API; the design is not fixed and may change in the future. Applied to a UsdGeomPoints or UsdGeomPointInstancer primitive with PhysxParticleSetAPI. Defines settings that the particle simulation uses to spawn diffuse particles. The diffuse particles are a render-only effect and do not affect the particle dynamics.
Public Functions
-
inline explicit PhysxSchemaPhysxDiffuseParticlesAPI(const UsdPrim &prim = UsdPrim())
Construct a PhysxSchemaPhysxDiffuseParticlesAPI on UsdPrim
prim
. Equivalent to PhysxSchemaPhysxDiffuseParticlesAPI::Get(prim.GetStage(), prim.GetPath()) for a validprim
, but will not immediately throw an error for an invalidprim
.
-
inline explicit PhysxSchemaPhysxDiffuseParticlesAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxDiffuseParticlesAPI on the prim held by
schemaObj
. Should be preferred over PhysxSchemaPhysxDiffuseParticlesAPI(schemaObj.GetPrim()), as it preserves SchemaBase state.
-
inline virtual ~PhysxSchemaPhysxDiffuseParticlesAPI()
Destructor.
-
inline operator bool() const
Boolean operator.
- Returns
Return true if the contained prim is has this api schema applied using
HasAPI
, and false otherwise.
-
inline UsdAttribute GetDiffuseParticlesEnabledAttr() const
Enable or disable the creation of diffuse particles.
Declaration
bool physxDiffuseParticles:diffuseParticlesEnabled = 1
C++ Type
bool
Usd Type
SdfValueTypeNames->Bool
-
inline UsdAttribute CreateDiffuseParticlesEnabledAttr() const
See GetDiffuseParticlesEnabledAttr(), 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 GetMaxDiffuseParticleMultiplierAttr() const
Maximum number of diffuse particles that can be present in the simulation relative to the number of non-diffuse particles. Range: [0.0, inf) Default value -inf means default is picked by the simulation.
Declaration
uniform float physxDiffuseParticles:maxDiffuseParticleMultiplier = -inf
C++ Type
float
Usd Type
SdfValueTypeNames->Float
Variability
SdfVariabilityUniform
-
inline UsdAttribute CreateMaxDiffuseParticleMultiplierAttr() const
See GetMaxDiffuseParticleMultiplierAttr(), 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 GetThresholdAttr() const
Kinetic energy threshold a particle must reach to spawn a diffuse particle. Range: [0, inf) Units: energy = mass * distance * distance / seconds / seconds.
Declaration
float physxDiffuseParticles:threshold = 0.01
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateThresholdAttr() const
See GetThresholdAttr(), 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 GetLifetimeAttr() const
Lifetime of a spawned particle before it is removed again. Range: [0, inf) Units: seconds.
Declaration
float physxDiffuseParticles:lifetime = 5
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateLifetimeAttr() const
See GetLifetimeAttr(), 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 GetAirDragAttr() const
Air drag force factor for spray particles. Range: [0, inf) Units: dimensionless.
Declaration
float physxDiffuseParticles:airDrag = 0
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateAirDragAttr() const
See GetAirDragAttr(), 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 GetBubbleDragAttr() const
Fluid drag force factor for bubble particles. Range: [0, inf) Units: dimensionless.
Declaration
float physxDiffuseParticles:bubbleDrag = 0.5
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateBubbleDragAttr() const
See GetBubbleDragAttr(), 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 GetBuoyancyAttr() const
Buoyancy force factor for bubble particles. Range: [0, inf) Units: dimensionless.
Declaration
float physxDiffuseParticles:buoyancy = 0.8
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateBuoyancyAttr() const
See GetBuoyancyAttr(), 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 GetKineticEnergyWeightAttr() const
Contribution from kinetic energy when deciding diffuse particle creation. Range: [0, inf) Units: dimensionless.
Declaration
float physxDiffuseParticles:kineticEnergyWeight = 0.01
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateKineticEnergyWeightAttr() const
See GetKineticEnergyWeightAttr(), 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 GetPressureWeightAttr() const
Contribution from pressure when deciding diffuse particle creation. Range: [0, inf) Units: dimensionless.
Declaration
float physxDiffuseParticles:pressureWeight = 1
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreatePressureWeightAttr() const
See GetPressureWeightAttr(), 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 GetDivergenceWeightAttr() const
Contribution from divergence when deciding diffuse particle creation. Range: [0, inf) Units: dimensionless.
Declaration
float physxDiffuseParticles:divergenceWeight = 5
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateDivergenceWeightAttr() const
See GetDivergenceWeightAttr(), 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 GetCollisionDecayAttr() const
Decay factor of diffuse particles’ lifetime after they collide with shapes. 0 == lifetime remains unchanged, 1 == particle disappears immediately. Range: [0, 1] Units: dimensionless.
Declaration
float physxDiffuseParticles:collisionDecay = 0.5
C++ Type
float
Usd Type
SdfValueTypeNames->Float
-
inline UsdAttribute CreateCollisionDecayAttr() const
See GetCollisionDecayAttr(), 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 GetUseAccurateVelocityAttr() const
Enables accurate particle velocity estimation.
Declaration
bool physxDiffuseParticles:useAccurateVelocity = 0
C++ Type
bool
Usd Type
SdfValueTypeNames->Bool
-
inline UsdAttribute CreateUseAccurateVelocityAttr() const
See GetUseAccurateVelocityAttr(), 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
.
Public Static Functions
-
static inline PhysxSchemaPhysxDiffuseParticlesAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given
prim
. This information is stored by adding “PhysxDiffuseParticlesAPI” to the token-valued, listOp metadata apiSchemas on the prim.See also
UsdPrim::GetAppliedSchemas()
See also
UsdPrim::HasAPI()
See also
UsdPrim::ApplyAPI()
See also
UsdPrim::RemoveAPI()
- Returns
A valid PhysxSchemaPhysxDiffuseParticlesAPI object is returned upon success. An invalid (or empty) PhysxSchemaPhysxDiffuseParticlesAPI object is returned upon failure. See UsdPrim::ApplyAPI() for conditions resulting in failure.
Public Static Attributes
-
static const UsdSchemaType schemaType = UsdSchemaType::SingleApplyAPI
Compile time constant representing what kind of schema this class is.
See also
UsdSchemaType
-
inline explicit PhysxSchemaPhysxDiffuseParticlesAPI(const UsdPrim &prim = UsdPrim())