7#ifndef USDPHYSICS_PARSE_DESC_H
8#define USDPHYSICS_PARSE_DESC_H
19PXR_NAMESPACE_OPEN_SCOPE
186 const SdfPathVector& GetFilteredGroups()
const
191 const SdfPathVector& GetMergedGroups()
const
223 const SdfPathVector& GetMaterials()
const
228 const SdfPathVector& GetSimulationOwners()
const
233 const SdfPathVector& GetFilteredCollisions()
const
238 const SdfPathVector& GetCollisionGroups()
const
320 float inBottomRadius = 0.0f,
float half_height = 0.0f,
376 float inBottomRadius = 0.0f,
float half_height = 0.0f,
505 TfToken GetApproximation()
const
581 const SdfPathVector& GetCollisions()
const
586 const SdfPathVector& GetFilteredCollisions()
const
591 const SdfPathVector& GetSimulationOwners()
const
709 const SdfPathVector& GetRootPrims()
const
714 const SdfPathVector& GetFilteredCollisions()
const
719 const SdfPathVector& GetArticulatedJoints()
const
724 const SdfPathVector& GetArticulatedBodies()
const
740using JointLimits = std::vector<
743using JointDrives = std::vector<
864 axis(UsdPhysicsAxis::X)
889 axis(UsdPhysicsAxis::X)
912 axis(UsdPhysicsAxis::X)
955PXR_NAMESPACE_CLOSE_SCOPE
Basic type: a quaternion, a complex number with a real coefficient and three imaginary coefficients,...
Basic type for a vector of 3 float components.
A path value used to locate objects in layers or scenegraphs.
Token for efficient comparison, assignment, and hashing of known strings.
Physics axis structure for type enumeration.
Physics joint degree of freedom structure for type enumeration.
Physics object type structure for type enumeration.
const float usdPhysicsSentinelLimit
Sentinel value for flt max compare.
Articulation description.
SdfPathVector rootPrims
List of articulation roots, this defines where the articulation topology starts.
SdfPathVector articulatedBodies
List of bodies that can be part of this articulation.
SdfPathVector filteredCollisions
Filtered collisions.
SdfPathVector articulatedJoints
List of joints that can be part of this articulation.
Capsule1 shape collision descriptor.
float bottomRadius
Capsule bottom radius.
UsdPhysicsAxis axis
Capsule axis.
float topRadius
Capsule top radius.
float halfHeight
Capsule half height.
Capsule shape collision descriptor.
UsdPhysicsAxis axis
Capsule axis.
float radius
Capsule radius.
float halfHeight
Capsule half height.
Collision group descriptor.
SdfPathVector mergedGroups
List of merged collision groups.
bool invertFilteredGroups
If filtering is inverted or not (default does not collide with)
std::string mergeGroupName
Merge group name.
SdfPathVector filteredGroups
Filtered groups SdfPath vector.
Cone shape collision descriptor.
UsdPhysicsAxis axis
Cone axis.
float halfHeight
Cone half height.
Cube shape collision descriptor.
GfVec3f halfExtents
Half extents of the cube.
Custom shape collision descriptor.
TfToken customGeometryToken
Custom geometry token for this collision.
Cylinder1 shape collision descriptor.
float bottomRadius
Cylinder bottom radius.
UsdPhysicsAxis axis
Cylinder axis.
float topRadius
Cylinder top radius.
float halfHeight
Cylinder half height.
Cylinder shape collision descriptor.
UsdPhysicsAxis axis
Cylinder axis.
float radius
Cylinder radius.
float halfHeight
Cylinder half height.
Generic D6 joint descriptor.
JointDrives jointDrives
List of joint drives.
JointLimits jointLimits
List of joint limit's.
Distance joint descriptor.
bool maxEnabled
Defines if maximum limit is enabled.
UsdPhysicsJointLimit limit
The distance limit.
bool minEnabled
Defines if minimum limit is enabled.
Base UsdPhysics joint descriptor.
GfVec3f localPose1Position
Relative local position against the body1 world frame.
GfQuatf localPose0Orientation
Relative local orientation against the body0 world frame.
SdfPath rel0
UsdPrim relationship 0 for the joint.
GfQuatf localPose1Orientation
Relative local orientation against the body1 world frame.
bool collisionEnabled
Defines if collision is enabled or disabled between the jointed bodies.
SdfPath body1
Rigid body 1 that the joint is connected, does not have to match the rel1.
bool jointEnabled
Defines if joint is enabled or disabled.
bool excludeFromArticulation
Defines if joint belongs to an articulation or if it's a maximum coordinate joint.
SdfPath rel1
UsdPrim relationship 1 for the joint.
float breakTorque
Joint break torque.
SdfPath body0
Rigid body 0 that the joint is connected, does not have to match the rel0.
float breakForce
Joint break force.
GfVec3f localPose0Position
Relative local position against the body0 world frame.
Joint drive descriptor The expected drive formula: force = spring * (target position - position) + da...
float forceLimit
force limit
float targetPosition
Drive target position.
bool enabled
Defines whether drive is enabled or not.
float damping
Drive damping.
bool acceleration
Drive mode is acceleration or force.
float stiffness
Drive stiffness.
float targetVelocity
Drive target velocity.
bool enabled
Defines whether limit is enabled or not.
Mesh shape collision descriptor.
bool doubleSided
Defines whether mesh is double sided or not.
GfVec3f meshScale
Mesh scale.
TfToken approximation
Desired approximation for the mesh collision.
Base physics object descriptor.
SdfPath primPath
SdfPath for the prim from which the descriptor was parsed.
bool isValid
Validity of a descriptor, the parsing may succeed, but the descriptor might be not valid.
UsdPhysicsObjectType type
Descriptor type.
Plane shape collision descriptor.
UsdPhysicsAxis axis
Plane axis.
Prismatic joint descriptor.
UsdPhysicsJointLimit limit
Joint linear limit.
UsdPhysicsJointDrive drive
Joint linear drive.
UsdPhysicsAxis axis
The joints axis.
Revolute joint descriptor.
UsdPhysicsJointLimit limit
The angular limit.
UsdPhysicsJointDrive drive
The angular drive.
UsdPhysicsAxis axis
The joints axis.
SdfPathVector simulationOwners
Simulation owners list.
bool kinematicBody
Defines if the body is kinematic or not.
GfVec3f position
Rigid body position in world space.
GfVec3f scale
Rigid body scale.
bool rigidBodyEnabled
Defines whether body is enabled or not, if not enabled it's a static body.
GfQuatf rotation
Rigid body orientation in world space.
GfVec3f angularVelocity
Rigid body initial angular velocity.
GfVec3f linearVelocity
Rigid body initial linear velocity.
bool startsAsleep
Defines if body starts asleep or awake.
SdfPathVector filteredCollisions
Filtered collisions.
SdfPathVector collisions
List of collision shapes that belong to this rigid body.
Rigid body material descriptor.
float restitution
Restitution.
float staticFriction
Static friction.
float dynamicFriction
Dynamic friction.
GfVec3f gravityDirection
Gravity direction, if default 0,0,0 was used negative upAxis direction will be returned.
float gravityMagnitude
Gravity magnitude, -inf means Earth gravity adjusted by metersPerUnit will be returned.
Shape descriptor, base class should not be reported.
SdfPath rigidBody
Rigid body the collision shape belongs to, if not set it's a static collider.
SdfPathVector simulationOwners
Simulation owners list.
SdfPathVector materials
Materials assigned to the collision geometry, can be multiple materials used on UsdGeomSubset.
SdfPathVector collisionGroups
List of collision groups this collision belongs to, note that only collision groups that are part of ...
bool collisionEnabled
Collision enabled/disabled bool.
GfVec3f localScale
Local scale of the shape relative to the body world pose.
GfQuatf localRot
Local orientation of the shape relative to the body world pose.
SdfPathVector filteredCollisions
Filtered collisions list.
GfVec3f localPos
Local position of the shape relative to the body world pose.
This struct represents a single sphere-point which is a position and a radius.
float radius
Sphere point radius.
GfVec3f center
Sphere point center.
This struct represents a collection of sphere points.
std::vector< UsdPhysicsSpherePoint > spherePoints
List of sphere points.
Sphere shape collision descriptor.
float radius
Sphere radius.
Spherical joint descriptor.
UsdPhysicsJointLimit limit
The join spherical limit.
UsdPhysicsAxis axis
The joints axis.