7 #ifndef USDPHYSICS_PARSE_DESC_H
8 #define USDPHYSICS_PARSE_DESC_H
320 float inBottomRadius = 0.0
f,
float half_height = 0.0
f,
376 float inBottomRadius = 0.0
f,
float half_height = 0.0
f,
bool operator==(const UsdPhysicsJointDrive &) const
bool operator==(const UsdPhysicsJointDesc &) const
bool maxEnabled
Defines if maximum limit is enabled.
float breakForce
Joint break force.
float staticFriction
Static friction.
GfVec3f halfExtents
Half extents of the cube.
float radius
Sphere radius.
const SdfPathVector & GetCollisions() const
SdfPathVector filteredCollisions
Filtered collisions list.
bool collisionEnabled
Defines if collision is enabled or disabled between the jointed bodies.
bool operator==(const UsdPhysicsSceneDesc &) const
float restitution
Restitution.
const SdfPathVector & GetRootPrims() const
bool acceleration
Drive mode is acceleration or force.
bool operator==(const UsdPhysicsCustomJointDesc &) const
UsdPhysicsCylinder1ShapeDesc(float inTopRadius=0.0f, float inBottomRadius=0.0f, float half_height=0.0f, UsdPhysicsAxis cap_axis=UsdPhysicsAxis::X)
bool enabled
Defines whether limit is enabled or not.
UsdPhysicsFixedJointDesc()
float halfHeight
Cone half height.
GfQuatf localPose0Orientation
Relative local orientation against the body0 world frame.
float breakTorque
Joint break torque.
std::string mergeGroupName
Merge group name.
const SdfPathVector & GetArticulatedJoints() const
float bottomRadius
Capsule bottom radius.
UsdPhysicsJointLimit limit
The angular limit.
const SdfPathVector & GetSimulationOwners() const
const SdfPathVector & GetFilteredCollisions() const
UsdPhysicsAxis axis
The joints axis.
UsdPhysicsSpherePointsShapeDesc()
UsdPhysicsAxis axis
The joints axis.
UsdPhysicsAxis axis
Cone axis.
UsdPhysicsSphericalJointDesc()
bool operator==(const UsdPhysicsFixedJointDesc &) const
float targetVelocity
Drive target velocity.
TfToken GetApproximation() const
SdfPathVector simulationOwners
Simulation owners list.
UsdPhysicsCapsule1ShapeDesc(float inTopRadius=0.0f, float inBottomRadius=0.0f, float half_height=0.0f, UsdPhysicsAxis cap_axis=UsdPhysicsAxis::X)
UsdPhysicsRigidBodyMaterialDesc()
bool minEnabled
Defines if minimum limit is enabled.
bool startsAsleep
Defines if body starts asleep or awake.
const SdfPathVector & GetFilteredGroups() const
bool operator==(const UsdPhysicsSphereShapeDesc &) const
UsdPhysicsObjectType type
Descriptor type.
UsdPhysicsCustomJointDesc()
GLenum GLenum GLsizei const GLuint GLboolean enabled
SdfPathVector filteredCollisions
Filtered collisions.
UsdPhysicsRevoluteJointDesc()
bool operator==(const UsdPhysicsCubeShapeDesc &) const
UsdPhysicsJointDrive drive
Joint linear drive.
GfVec3f scale
Rigid body scale.
float stiffness
Drive stiffness.
float halfHeight
Capsule half height.
float halfHeight
Capsule half height.
float radius
Cylinder radius.
UsdPhysicsAxis axis
Plane axis.
UsdPhysicsArticulationDesc()
bool kinematicBody
Defines if the body is kinematic or not.
float topRadius
Capsule top radius.
bool rigidBodyEnabled
Defines whether body is enabled or not, if not enabled it's a static body.
SdfPathVector filteredGroups
Filtered groups SdfPath vector.
UsdPhysicsJointLimit limit
The join spherical limit.
bool collisionEnabled
Collision enabled/disabled bool.
UsdPhysicsShapeDesc(UsdPhysicsObjectType inType)
bool operator==(const UsdPhysicsCylinder1ShapeDesc &) const
SdfPathVector mergedGroups
List of merged collision groups.
UsdPhysicsJointDrive drive
The angular drive.
SdfPath primPath
SdfPath for the prim from which the descriptor was parsed.
GLint GLint GLsizei GLint GLenum GLenum type
float forceLimit
force limit
GfQuatf localRot
Local orientation of the shape relative to the body world pose.
SdfPathVector articulatedBodies
List of bodies that can be part of this articulation.
const SdfPathVector & GetFilteredCollisions() const
GfVec3f position
Rigid body position in world space.
UsdPhysicsMeshShapeDesc()
UsdPhysicsCubeShapeDesc(const GfVec3f &inHalfExtents=GfVec3f(1.0f))
UsdPhysicsJointDesc(UsdPhysicsObjectType inType)
bool invertFilteredGroups
If filtering is inverted or not (default does not collide with)
UsdPhysicsCylinderShapeDesc(float inRadius=0.0f, float half_height=0.0f, UsdPhysicsAxis cap_axis=UsdPhysicsAxis::X)
bool jointEnabled
Defines if joint is enabled or disabled.
std::vector< class SdfPath > SdfPathVector
bool operator==(const UsdPhysicsCollisionGroupDesc &) const
TfToken customGeometryToken
Custom geometry token for this collision.
GfQuatf localPose1Orientation
Relative local orientation against the body1 world frame.
float topRadius
Cylinder top radius.
virtual ~UsdPhysicsObjectDesc()=default
JointLimits jointLimits
List of joint limit's.
UsdPhysicsObjectDesc(UsdPhysicsObjectType inType)
bool operator==(const UsdPhysicsDistanceJointDesc &) const
const SdfPathVector & GetArticulatedBodies() const
UsdPhysicsAxis axis
Cylinder axis.
UsdPhysicsJointLimit limit
The distance limit.
const SdfPathVector & GetFilteredCollisions() const
GfVec3f localPose1Position
Relative local position against the body1 world frame.
SdfPathVector collisions
List of collision shapes that belong to this rigid body.
std::vector< std::pair< UsdPhysicsJointDOF, UsdPhysicsJointLimit >> JointLimits
SdfPath rel0
UsdPrim relationship 0 for the joint.
bool operator==(const UsdPhysicsSpherePointsShapeDesc &) const
GfVec3f linearVelocity
Rigid body initial linear velocity.
UsdPhysicsAxis axis
Cylinder axis.
UsdPhysicsCapsuleShapeDesc(float inRadius=0.0f, float half_height=0.0f, UsdPhysicsAxis cap_axis=UsdPhysicsAxis::X)
bool operator==(const UsdPhysicsCylinderShapeDesc &) const
bool operator==(const UsdPhysicsSphericalJointDesc &) const
GfVec3f localPose0Position
Relative local position against the body0 world frame.
const SdfPathVector & GetMaterials() const
bool operator==(const UsdPhysicsD6JointDesc &) const
bool operator==(const UsdPhysicsMeshShapeDesc &) const
UsdPhysicsPrismaticJointDesc()
bool operator==(const UsdPhysicsCapsule1ShapeDesc &) const
SdfPathVector simulationOwners
Simulation owners list.
PXR_NAMESPACE_OPEN_SCOPE const float usdPhysicsSentinelLimit
Sentinel value for flt max compare.
SdfPathVector filteredCollisions
Filtered collisions.
bool operator==(const UsdPhysicsRevoluteJointDesc &) const
const SdfPathVector & GetMergedGroups() const
bool operator==(const UsdPhysicsCapsuleShapeDesc &) const
bool operator==(const UsdPhysicsCustomShapeDesc &) const
UsdPhysicsCollisionGroupDesc()
GfVec3f localScale
Local scale of the shape relative to the body world pose.
bool operator==(const UsdPhysicsSpherePoint &) const
float damping
Drive damping.
const SdfPathVector & GetCollisionGroups() const
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
UsdPhysicsRigidBodyDesc()
UsdPhysicsDistanceJointDesc()
float radius
Capsule radius.
bool operator==(const UsdPhysicsRigidBodyDesc &) const
UsdPhysicsCustomShapeDesc()
bool enabled
Defines whether drive is enabled or not.
float targetPosition
Drive target position.
GfVec3f angularVelocity
Rigid body initial angular velocity.
#define PXR_NAMESPACE_CLOSE_SCOPE
UsdPhysicsJointLimit limit
Joint linear limit.
std::vector< UsdPhysicsSpherePoint > spherePoints
List of sphere points.
bool operator==(const UsdPhysicsRigidBodyMaterialDesc &) const
float halfHeight
Cylinder half height.
GfQuatf rotation
Rigid body orientation in world space.
float halfHeight
Cylinder half height.
GfVec3f meshScale
Mesh scale.
UsdPhysicsConeShapeDesc(float inRadius=0.0f, float half_height=0.0f, UsdPhysicsAxis cap_axis=UsdPhysicsAxis::X)
UsdPhysicsPlaneShapeDesc(UsdPhysicsAxis up_axis=UsdPhysicsAxis::X)
bool operator==(const UsdPhysicsArticulationDesc &) const
float dynamicFriction
Dynamic friction.
const SdfPathVector & GetSimulationOwners() const
GfVec3f center
Sphere point center.
GfVec3f localPos
Local position of the shape relative to the body world pose.
UsdPhysicsSphereShapeDesc(float inRadius=0.0f)
std::vector< std::pair< UsdPhysicsJointDOF, UsdPhysicsJointDrive >> JointDrives
UsdPhysicsAxis axis
The joints axis.
SdfPathVector articulatedJoints
List of joints that can be part of this articulation.
JointDrives jointDrives
List of joint drives.
float radius
Sphere point radius.
bool operator==(const UsdPhysicsConeShapeDesc &) const
bool doubleSided
Defines whether mesh is double sided or not.
bool excludeFromArticulation
TfToken approximation
Desired approximation for the mesh collision.
bool operator==(const UsdPhysicsJointLimit &) const
SdfPathVector collisionGroups
bool operator==(const UsdPhysicsPlaneShapeDesc &) const
float bottomRadius
Cylinder bottom radius.
SdfPath rel1
UsdPrim relationship 1 for the joint.
bool operator==(const UsdPhysicsPrismaticJointDesc &) const
UsdPhysicsAxis axis
Capsule axis.
UsdPhysicsAxis axis
Capsule axis.