Interface to access editor-only Joint utilities and helper functions. More...
#include <PhysicsJoint.h>
Public Member Functions | |
AZ_RTTI (AzPhysics::EditorJointHelpersInterface, "{79B0CE51-E7DA-4CA9-BAE0-8441E09B4713}") | |
AZ_DISABLE_COPY_MOVE (EditorJointHelpersInterface) | |
virtual AZStd::unique_ptr< AzPhysics::JointConfiguration > | ComputeOptimalJointLimit (const AzPhysics::JointConfiguration *currentConfiguration, const AZStd::vector< AZ::Quaternion > &localRotationSamples)=0 |
Interface to access editor-only Joint utilities and helper functions.
|
pure virtual |
Attempts to compute an optimal joint configuration, based on the current configuration and sample rotations of the joint.
currentConfiguration | The current joint configuration, used to initialize the optimization. |
localRotationSamples | A vector containing sample valid rotations in the local space of the child world body relative to the parent world body, which is used to help estimate the extents of the joint limit. |