Interface to communicate with PhysX joint's motor.
More...
#include <PhysXJointRequestsBus.h>
Inherits AZ::EBusTraits.
|
using | BusIdType = AZ::EntityComponentIdPair |
|
|
static constexpr AZ::EBusAddressPolicy | AddressPolicy = AZ::EBusAddressPolicy::ById |
|
Interface to communicate with PhysX joint's motor.
◆ GetPosition()
virtual float PhysX::JointRequests::GetPosition |
( |
| ) |
const |
|
pure virtual |
Returns current position from joint. It is a relative position of the entity in the direction of the free axis of the joint. For a hinge joint it is a twist angle (in radians), for the prismatic joint it is travel (in meters).
◆ GetVelocity()
virtual float PhysX::JointRequests::GetVelocity |
( |
| ) |
const |
|
pure virtual |
Returns velocity. It is a relative velocity of the entity in the direction of the free axis of the joint. For a hinge joint rotation velocity in radians per second. For prismatic joint it is linear velocity in meters per second.
◆ SetMaximumForce()
virtual void PhysX::JointRequests::SetMaximumForce |
( |
float |
force | ) |
|
|
pure virtual |
Sets maximum motor force.
- Parameters
-
force | in Newtons (for prismatic joint) or Newton-meters (for hinge joint). |
◆ SetVelocity()
virtual void PhysX::JointRequests::SetVelocity |
( |
float |
velocity | ) |
|
|
pure virtual |
Sets drive velocity.
- Parameters
-
velocity | velocity in meters per second (for prismatic joint) or radians per second (for hinge joint) |
The documentation for this class was generated from the following file:
- Gems/PhysX/Core/Code/Include/PhysX/Joint/PhysXJointRequestsBus.h