A force sensor that can be attached to articulation links to measure spatial force.
More...
#include <PxArticulationReducedCoordinate.h>
|
|
void * | userData |
| | user can assign this to whatever, usually to create a 1:1 relationship with a user object.
|
| |
|
|
PX_INLINE | PxArticulationSensor (PxType concreteType, PxBaseFlags baseFlags) |
| |
|
PX_INLINE | PxArticulationSensor (PxBaseFlags baseFlags) |
| |
|
PX_INLINE | PxBase (PxType concreteType, PxBaseFlags baseFlags) |
| | Constructor setting concrete type and base flags.
|
| |
|
PX_INLINE | PxBase (PxBaseFlags baseFlags) |
| | Deserialization constructor setting base flags.
|
| |
|
virtual | ~PxBase () |
| | Destructor.
|
| |
| virtual bool | isKindOf (const char *superClass) const |
| | Returns whether a given type name matches with the type of this instance.
|
| |
|
template<class T > |
| bool | typeMatch () const |
| |
|
|
PxType | mConcreteType |
| |
|
PxBaseFlags | mBaseFlags |
| |
|
PxU32 | mBuiltInRefCount |
| |
A force sensor that can be attached to articulation links to measure spatial force.
- See also
- PxArticulationReducedCoordinate::createSensor
◆ getArticulation()
Returns the articulation that this sensor is part of.
- Returns
- A pointer to the articulation.
Implemented in physx::NpArticulationSensor.
◆ getConcreteTypeName()
| virtual const char * physx::PxArticulationSensor::getConcreteTypeName |
( |
| ) |
const |
|
inlinevirtual |
Returns the string name of the dynamic type.
- Returns
- The string name.
Implements physx::PxBase.
◆ getFlags()
◆ getForces()
| virtual PxSpatialForce physx::PxArticulationSensor::getForces |
( |
| ) |
const |
|
pure virtual |
◆ getIndex()
| virtual PxU32 physx::PxArticulationSensor::getIndex |
( |
| ) |
const |
|
pure virtual |
Returns the index of this sensor inside the articulation.
The return value is only valid for sensors attached to articulations that are in a scene.
- Returns
- The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
Implemented in physx::NpArticulationSensor.
◆ getLink()
◆ getRelativePose()
| virtual PxTransform physx::PxArticulationSensor::getRelativePose |
( |
| ) |
const |
|
pure virtual |
◆ release()
| virtual void physx::PxArticulationSensor::release |
( |
| ) |
|
|
pure virtual |
Releases the sensor.
- Note
- Releasing a sensor is not allowed while the articulation is in a scene. In order to release a sensor, remove and then re-add the articulation to the scene.
Implements physx::PxBase.
Implemented in physx::NpArticulationSensor.
◆ setFlag()
Sets a flag of the sensor.
- Parameters
-
| [in] | flag | The flag to set. |
| [in] | enabled | The value to set the flag to. |
- Note
- Setting the sensor flags is not allowed while the articulation is in a scene. In order to set the flags, remove and then re-add the articulation to the scene.
- See also
- PxArticulationSensorFlag
Implemented in physx::NpArticulationSensor.
◆ setRelativePose()
| virtual void physx::PxArticulationSensor::setRelativePose |
( |
const PxTransform & |
pose | ) |
|
|
pure virtual |
Sets the relative pose between this sensor and the body frame of the link that the sensor is attached to.
The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose.
- Parameters
-
| [in] | pose | The transform link body frame -> sensor frame. |
- Note
- Setting the sensor relative pose is not allowed while the articulation is in a scene. In order to set the pose, remove and then re-add the articulation to the scene.
- See also
- getRelativePose
Implemented in physx::NpArticulationSensor.
The documentation for this class was generated from the following file: