A plugin class for implementing constraints.
More...
#include <PxConstraint.h>
A plugin class for implementing constraints.
- See Also
- PxPhysics.createConstraint
virtual PxConstraint::~PxConstraint |
( |
| ) |
|
|
inlineprotectedvirtual |
Retrieves the actors for this constraint.
- Parameters
-
[out] | actor0 | a reference to the pointer for the first actor |
[out] | actor1 | a reference to the pointer for the second actor |
- See Also
- PxActor
virtual void PxConstraint::getBreakForce |
( |
PxReal & |
linear, |
|
|
PxReal & |
angular |
|
) |
| const |
|
pure virtual |
Retrieve the constraint break force and torque thresholds.
- Parameters
-
[out] | linear | the linear break threshold |
[out] | angular | the angular break threshold |
virtual const char* PxConstraint::getConcreteTypeName |
( |
| ) |
const |
|
inlinevirtual |
Returns string name of dynamic type.
- Returns
- Class name of most derived type of this object.
Reimplemented from PxBase.
virtual void* PxConstraint::getExternalReference |
( |
PxU32 & |
typeID | ) |
|
|
pure virtual |
Fetch external owner of the constraint.
Provides a reference to the external owner of a constraint and a unique owner type ID.
- Parameters
-
[out] | typeID | Unique type identifier of the external object. |
- Returns
- Reference to the external object which owns the constraint.
- See Also
- PxConstraintConnector.getExternalReference()
Retrieve the flags for this constraint.
- Returns
- the constraint flags
- See Also
- PxConstraintFlags
virtual void PxConstraint::getForce |
( |
PxVec3 & |
linear, |
|
|
PxVec3 & |
angular |
|
) |
| const |
|
pure virtual |
Retrieve the constraint force most recently applied to maintain this constraint.
- Parameters
-
[out] | linear | the constraint force |
[out] | angular | the constraint torque |
virtual PxScene* PxConstraint::getScene |
( |
| ) |
const |
|
pure virtual |
Retrieves the scene which this constraint belongs to.
- Returns
- Owner Scene. NULL if not part of a scene.
- See Also
- PxScene
virtual bool PxConstraint::isKindOf |
( |
const char * |
superClass | ) |
const |
|
inlineprotectedvirtual |
Returns whether a given type name matches with the type of this instance.
Reimplemented from PxBase.
References PxBase::isKindOf().
virtual bool PxConstraint::isValid |
( |
| ) |
const |
|
pure virtual |
whether the constraint is valid.
A constraint is valid if it has at least one dynamic rigid body or articulation link. A constraint that is not valid may not be inserted into a scene, and therefore a static actor to which an invalid constraint is attached may not be inserted into a scene.
Invalid constraints arise only when an actor to which the constraint is attached has been deleted.
virtual void PxConstraint::markDirty |
( |
| ) |
|
|
pure virtual |
Notify the scene that the constraint shader data has been updated by the application.
virtual void PxConstraint::release |
( |
| ) |
|
|
pure virtual |
Sets the actors for this constraint.
- Parameters
-
[in] | actor0 | a reference to the pointer for the first actor |
[in] | actor1 | a reference to the pointer for the second actor |
- See Also
- PxActor
virtual void PxConstraint::setBreakForce |
( |
PxReal |
linear, |
|
|
PxReal |
angular |
|
) |
| |
|
pure virtual |
Set the break force and torque thresholds for this constraint.
If either the force or torque measured at the constraint exceed these thresholds the constraint will break.
- Parameters
-
[in] | linear | the linear break threshold |
[in] | angular | the angular break threshold |
Set a flag for this constraint.
- Parameters
-
[in] | flag | the constraint flag |
[in] | value | the new value of the flag |
- See Also
- PxConstraintFlags
The documentation for this class was generated from the following file: