A force field that adds randomized motion to a rigid body. More...
Inherits UsdAPISchemaBase.
Public Member Functions | |
ForceFieldSchemaPhysxForceFieldNoiseAPI (const UsdPrim &prim=UsdPrim(), const TfToken &name=TfToken()) | |
Construct a ForceFieldSchemaPhysxForceFieldNoiseAPI on UsdPrim prim with name name . More... | |
ForceFieldSchemaPhysxForceFieldNoiseAPI (const UsdSchemaBase &schemaObj, const TfToken &name) | |
Construct a ForceFieldSchemaPhysxForceFieldNoiseAPI on the prim held by schemaObj with name name . More... | |
virtual FORCEFIELDSCHEMA_API | ~ForceFieldSchemaPhysxForceFieldNoiseAPI () |
Destructor. More... | |
TfToken | GetName () const |
Returns the name of this multiple-apply schema instance. More... | |
FORCEFIELDSCHEMA_API UsdAttribute | GetDragAttr () const |
The drag coefficient determines how quickly the body moves along with the noise. More... | |
FORCEFIELDSCHEMA_API UsdAttribute | CreateDragAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetDragAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
FORCEFIELDSCHEMA_API UsdAttribute | GetAmplitudeAttr () const |
The magnitude of the oscillations along each of the three local axes. More... | |
FORCEFIELDSCHEMA_API UsdAttribute | CreateAmplitudeAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetAmplitudeAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
FORCEFIELDSCHEMA_API UsdAttribute | GetFrequencyAttr () const |
The frequency of the oscillations for each of the three local axes. More... | |
FORCEFIELDSCHEMA_API UsdAttribute | CreateFrequencyAttr (VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const |
See GetFrequencyAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create. More... | |
Static Public Member Functions | |
static FORCEFIELDSCHEMA_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 classes. More... | |
static FORCEFIELDSCHEMA_API TfTokenVector | GetSchemaAttributeNames (bool includeInherited, const TfToken &instanceName) |
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor classes for a given instance name. More... | |
static FORCEFIELDSCHEMA_API ForceFieldSchemaPhysxForceFieldNoiseAPI | Get (const UsdStagePtr &stage, const SdfPath &path) |
Return a ForceFieldSchemaPhysxForceFieldNoiseAPI holding the prim adhering to this schema at path on stage . More... | |
static FORCEFIELDSCHEMA_API ForceFieldSchemaPhysxForceFieldNoiseAPI | Get (const UsdPrim &prim, const TfToken &name) |
Return a ForceFieldSchemaPhysxForceFieldNoiseAPI with name name holding the prim prim . More... | |
static FORCEFIELDSCHEMA_API std::vector < ForceFieldSchemaPhysxForceFieldNoiseAPI > | GetAll (const UsdPrim &prim) |
Return a vector of all named instances of ForceFieldSchemaPhysxForceFieldNoiseAPI on the given prim . More... | |
static FORCEFIELDSCHEMA_API bool | IsSchemaPropertyBaseName (const TfToken &baseName) |
Checks if the given name baseName is the base name of a property of PhysxForceFieldNoiseAPI. More... | |
static FORCEFIELDSCHEMA_API bool | IsPhysxForceFieldNoiseAPIPath (const SdfPath &path, TfToken *name) |
Checks if the given path path is of an API schema of type PhysxForceFieldNoiseAPI. More... | |
static FORCEFIELDSCHEMA_API bool | CanApply (const UsdPrim &prim, const TfToken &name, std::string *whyNot=nullptr) |
Returns true if this multiple-apply API schema can be applied, with the given instance name, name , to the given prim . More... | |
static FORCEFIELDSCHEMA_API ForceFieldSchemaPhysxForceFieldNoiseAPI | Apply (const UsdPrim &prim, const TfToken &name) |
Applies this multiple-apply API schema to the given prim along with the given instance name, name . More... | |
Static Public Attributes | |
static const UsdSchemaKind | schemaKind = UsdSchemaKind::MultipleApplyAPI |
Compile time constant representing what kind of schema this class is. More... | |
Protected Member Functions | |
FORCEFIELDSCHEMA_API UsdSchemaKind | _GetSchemaKind () const override |
Returns the kind of schema this class belongs to. More... | |
Friends | |
class | UsdSchemaRegistry |
A force field that adds randomized motion to a rigid body.
Definition at line 57 of file physxForceFieldNoiseAPI.h.
|
inlineexplicit |
Construct a ForceFieldSchemaPhysxForceFieldNoiseAPI on UsdPrim prim
with name name
.
Equivalent to ForceFieldSchemaPhysxForceFieldNoiseAPI::Get( prim.GetStage(), prim.GetPath().AppendProperty( "physxForceField:name"));
for a valid prim
, but will not immediately throw an error for an invalid prim
Definition at line 74 of file physxForceFieldNoiseAPI.h.
|
inlineexplicit |
Construct a ForceFieldSchemaPhysxForceFieldNoiseAPI on the prim held by schemaObj
with name name
.
Should be preferred over ForceFieldSchemaPhysxForceFieldNoiseAPI(schemaObj.GetPrim(), name), as it preserves SchemaBase state.
Definition at line 83 of file physxForceFieldNoiseAPI.h.
|
virtual |
Destructor.
|
overrideprotected |
Returns the kind of schema this class belongs to.
|
static |
Applies this multiple-apply API schema to the given prim
along with the given instance name, name
.
This information is stored by adding "PhysxForceFieldNoiseAPI:<i>name</i>" to the token-valued, listOp metadata apiSchemas on the prim. For example, if name
is 'instance1', the token 'PhysxForceFieldNoiseAPI:instance1' is added to 'apiSchemas'.
|
static |
Returns true if this multiple-apply API schema can be applied, with the given instance name, name
, to the given prim
.
If this schema can not be a applied the prim, this returns false and, if provided, populates whyNot
with the reason it can not be applied.
Note that if CanApply returns false, that does not necessarily imply that calling Apply will fail. Callers are expected to call CanApply before calling Apply if they want to ensure that it is valid to apply a schema.
FORCEFIELDSCHEMA_API UsdAttribute CreateAmplitudeAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetAmplitudeAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
If specified, author defaultValue
as the attribute's default, sparsely (when it makes sense to do so) if writeSparsely
is true
- the default for writeSparsely
is false
.
FORCEFIELDSCHEMA_API UsdAttribute CreateDragAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetDragAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
If specified, author defaultValue
as the attribute's default, sparsely (when it makes sense to do so) if writeSparsely
is true
- the default for writeSparsely
is false
.
FORCEFIELDSCHEMA_API UsdAttribute CreateFrequencyAttr | ( | VtValue const & | defaultValue = VtValue() , |
bool | writeSparsely = false |
||
) | const |
See GetFrequencyAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
If specified, author defaultValue
as the attribute's default, sparsely (when it makes sense to do so) if writeSparsely
is true
- the default for writeSparsely
is false
.
|
static |
Return a ForceFieldSchemaPhysxForceFieldNoiseAPI holding the prim adhering to this schema at path
on stage
.
If no prim exists at path
on stage
, or if the prim at that path does not adhere to this schema, return an invalid schema object. path
must be of the format <path>.physxForceField:name .
This is shorthand for the following:
|
static |
Return a ForceFieldSchemaPhysxForceFieldNoiseAPI with name name
holding the prim prim
.
Shorthand for ForceFieldSchemaPhysxForceFieldNoiseAPI(prim, name);
|
static |
Return a vector of all named instances of ForceFieldSchemaPhysxForceFieldNoiseAPI on the given prim
.
FORCEFIELDSCHEMA_API UsdAttribute GetAmplitudeAttr | ( | ) | const |
The magnitude of the oscillations along each of the three local axes.
Declaration | float3 physxForceFieldNoise:amplitude = (0, 0, 0) |
C++ Type | GfVec3f |
Usd Type | SdfValueTypeNames->Float3 |
FORCEFIELDSCHEMA_API UsdAttribute GetDragAttr | ( | ) | const |
The drag coefficient determines how quickly the body moves along with the noise.
Smaller values cause the body to react more slowly.
Declaration | float physxForceFieldNoise:drag = 0 |
C++ Type | float |
Usd Type | SdfValueTypeNames->Float |
FORCEFIELDSCHEMA_API UsdAttribute GetFrequencyAttr | ( | ) | const |
The frequency of the oscillations for each of the three local axes.
Declaration | float3 physxForceFieldNoise:frequency = (0, 0, 0) |
C++ Type | GfVec3f |
Usd Type | SdfValueTypeNames->Float3 |
|
inline |
Returns the name of this multiple-apply schema instance.
Definition at line 109 of file physxForceFieldNoiseAPI.h.
|
static |
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor classes.
Does not include attributes that may be authored by custom/extended methods of the schemas involved.
|
static |
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor classes for a given instance name.
Does not include attributes that may be authored by custom/extended methods of the schemas involved. The names returned will have the proper namespace prefix.
|
static |
Checks if the given path path
is of an API schema of type PhysxForceFieldNoiseAPI.
If so, it stores the instance name of the schema in name
and returns true. Otherwise, it returns false.
|
static |
Checks if the given name baseName
is the base name of a property of PhysxForceFieldNoiseAPI.
|
static |
Compile time constant representing what kind of schema this class is.
Definition at line 63 of file physxForceFieldNoiseAPI.h.