Create simple but specific limits on any axis of movement or rotation. More...
#include <generic6dofconstraint.h>
Public Types | |
enum | UsableAxis { LinearX = 0, LinearY = 1, LinearZ = 2, AngularX = 3, AngularY = 4, AngularZ = 5, AngularXAsRotationalAxis = 0, AngularYAsRotationalAxis = 1, AngularZAsRotationalAxis = 2 } |
Identify the Axis a bit easier when iterating over them is less convienent than typing an Identifier. More... | |
Public Member Functions | |
Generic6DofConstraint (RigidProxy *ProxyA, RigidProxy *ProxyB, const Vector3 &VectorA, const Vector3 &VectorB, const Quaternion &QuaternionA, const Quaternion &QuaternionB, bool UseLinearReferenceA=false) | |
Two proxy Verbose constructor. More... | |
Generic6DofConstraint (RigidProxy *ProxyA, RigidProxy *ProxyB, const Transform &TransformA, const Transform &TransformB, bool UseLinearReferenceA=false) | |
Two proxy Terse constructor. More... | |
Generic6DofConstraint (RigidProxy *ProxyB, const Vector3 &VectorB, const Quaternion &QuaternionB, bool UseLinearReferenceB=true) | |
Body and World Verbose constructor. More... | |
Generic6DofConstraint (RigidProxy *ProxyB, const Transform &TransformB, bool UseLinearReferenceB=true) | |
Body and World Terse constructor. More... | |
virtual | ~Generic6DofConstraint () |
Class destructor. | |
virtual int | AxisToAngularAxis (int Axis) const |
Convert to internal Axis IDs from external or internal axis IDs. More... | |
virtual Vector3 | GetAngularLimitLower () const |
Get the Upper limits on rotation. More... | |
Real | GetAngularLimitLowerOnAxis (int RotationalAxis) const |
Get a specific lower rotational limit. More... | |
virtual Vector3 | GetAngularLimitMaxForce () const |
Get the Maximimum amount of force applied to ensure limits are not surpassed. More... | |
virtual Real | GetAngularLimitMaxForceOnAxis (int Axis) const |
Get the Maximimum amount of force applied to ensure a limit one axis is not surpassed. More... | |
virtual Vector3 | GetAngularLimitUpper () const |
Get the Power limits on rotation. More... | |
Real | GetAngularLimitUpperOnAxis (int RotationalAxis) const |
Get a specific upper rotational limit. More... | |
virtual Vector3 | GetAngularMotorDamping () const |
Get the Damping for all Angular Axis. More... | |
virtual Real | GetAngularMotorDampingOnAxis (int Axis) const |
Get the Damping for one given Axis. More... | |
virtual Vector3 | GetAngularMotorEnabled () const |
Get a Vector3 with 3 zero or nonzero values that store whether or not a given rotational motor is enable. More... | |
virtual bool | GetAngularMotorEnabledOnAxis (int Axis) const |
Is a specific rotational motor enabled. More... | |
virtual Vector3 | GetAngularMotorMaxForce () const |
Get the Max Motor Force for each Axis. More... | |
virtual Real | GetAngularMotorMaxForceOnAxis (int Axis) const |
Get the Max motor Force on a certain Axis. More... | |
virtual Vector3 | GetAngularMotorRestitution () const |
Get the Restistution values for all three axis. More... | |
virtual Real | GetAngularMotorRestitutionOnAxis (int Axis) const |
Get the Restistution/Bounciness for a single Axis. More... | |
virtual Vector3 | GetAngularMotorTargetVelocity () const |
Get the target velocity for all angular Axis. More... | |
virtual Real | GetAngularMotorTargetVelocityOnAxis (int Axis) const |
Get the Target Velocity for one axis. More... | |
virtual btTypedConstraint * | GetConstraintBase () const |
Get the Bullet constraint that this class encapsulates. More... | |
virtual Real | GetLinearLimitDamping () const |
Get the Damping of the linear Limits. More... | |
virtual Vector3 | GetLinearLimitLower () const |
Get the Upper limits on translation. More... | |
virtual Real | GetLinearLimitRestitution () const |
Get the Restitution of the linear Limits. More... | |
virtual Real | GetLinearLimitSoftness () const |
Get the Softness of the linear Limits. More... | |
virtual Vector3 | GetLinearLimitUpper () const |
Get the lower limits on translation. More... | |
virtual Vector3 | GetLinearMotorEnabled () const |
Get a Vector3 with 3 zero or nonzero values that store whether or not a given rotational motor is enable. More... | |
virtual bool | GetLinearMotorEnabledOnAxis (int Axis) const |
Is a specific Linear motor enabled. More... | |
virtual Vector3 | GetLinearMotorMaxForce () const |
Get the Max Motor Force for each Axis. More... | |
virtual Real | GetLinearMotorMaxForceOnAxis (int Axis) const |
Get the Max motor Force on a certain Axis. More... | |
virtual Vector3 | GetLinearMotorTargetVelocity () const |
Get the target velocity for all Linear Axis. More... | |
virtual Real | GetLinearMotorTargetVelocityOnAxis (int Axis) const |
Get the Target Velocity for one axis. More... | |
virtual Vector3 | GetPivotALocation () const |
Get the location of the pivot relative to ActorA's Center of gravity. More... | |
virtual Quaternion | GetPivotARotation () const |
Get the relative rotation for ActorA. More... | |
virtual Transform | GetPivotATransform () const |
Get the current Rotation and Location of Actor A. More... | |
virtual Vector3 | GetPivotBLocation () const |
Get the location of the pivot relative to ActorB's Center of gravity. More... | |
virtual Quaternion | GetPivotBRotation () const |
Get the relative rotation for ActorB. More... | |
virtual Transform | GetPivotBTransform () const |
Get the current Rotation and Location of Actor B. More... | |
virtual bool | GetUseFrameOffset () const |
Retrieve the stored value from the physics subsystem(bullet) More... | |
virtual bool | HasParamBeenSet (ConstraintParam Param, int Axis) const |
virtual void | ProtoDeSerialize (const XML::Node &OneNode) |
Take the data stored in an XML and overwrite this instance of this object with it. More... | |
virtual void | ProtoSerialize (XML::Node &CurrentRoot) const |
Convert this class to an XML::Node ready for serialization. More... | |
virtual void | SetAngularLimitLower (const Vector3 &Limit) |
Set the Lower limits on rotation. More... | |
virtual void | SetAngularLimitMaxForce (const Vector3 &MaxLimitForces) |
Set the Maximimum amount of force applied to ensure limits are not surpassed. More... | |
virtual void | SetAngularLimitMaxForceOnAxis (Real MaxLimitForce, int Axis) |
Set the Maximimum amount of force applied to ensure a limit on one axis is not surpassed. More... | |
virtual void | SetAngularLimitUpper (const Vector3 &Limit) |
Set the Upper limits on rotation. More... | |
virtual void | SetAngularMotorDamping (const Vector3 &Dampings) |
Set the Angular Motor Damping for each Angular Axis. More... | |
virtual void | SetAngularMotorDampingOnAxis (Real Damping, int Axis) |
For one Axis, set the Damping. More... | |
virtual void | SetAngularMotorEnabled (const Vector3 &Enableds) |
Set whether or not the motor is enabled for all Axis Simultaneously. More... | |
virtual void | SetAngularMotorEnabledOnAxis (bool Enabled, int Axis) |
For one Axis, set whether or not the motor is enabled. More... | |
virtual void | SetAngularMotorMaxForce (const Vector3 &Forces) |
Set the Angular Motor Maximum force on all 3 rotational axis. More... | |
virtual void | SetAngularMotorMaxForceOnAxis (Real Force, int Axis) |
For one Axis, set the Maximimum Motor Force. More... | |
virtual void | SetAngularMotorRestitution (const Vector3 &Restistutions) |
Set the Bounciness/Restition for rotation on all three Axis. More... | |
virtual void | SetAngularMotorRestitutionOnAxis (Real Restistution, int Axis) |
For one Axis, set the Restistution/Bounciness/. More... | |
virtual void | SetAngularMotorTargetVelocity (const Vector3 &Velocities) |
Set the Target velocity of the motor on each anuglar axis. More... | |
virtual void | SetAngularMotorTargetVelocityOnAxis (Real Velocity, int Axis) |
For one Axis, set the target velocity of the angular motor. More... | |
virtual void | SetLimit (int Axis, Real Lower, Real Upper) |
Change the upper and lower limit for one axis of translation or rotation limit. More... | |
virtual void | SetLinearLimitDamping (Real Damping) |
Set the Damping of the linear Limits. More... | |
virtual void | SetLinearLimitLower (const Vector3 &Limit) |
Set the Upper limits on translation. More... | |
virtual void | SetLinearLimitRestitution (Real Restitution) |
Set the Restitution of the linear Limits. More... | |
virtual void | SetLinearLimitSoftness (Real Softness) |
Set the Softness of the linear Limits. More... | |
virtual void | SetLinearLimitUpper (const Vector3 &Limit) |
Set the lower limits on translation. More... | |
virtual void | SetLinearMotorEnabled (const Vector3 &Enableds) |
Set whether or not the motor is enabled for all Linear Axis Simultaneously. More... | |
virtual void | SetLinearMotorEnabledOnAxis (bool Enabled, int Axis) |
For one Axis, set whether or not the motor is enabled. More... | |
virtual void | SetLinearMotorMaxForce (const Vector3 &Forces) |
Set the Linear Motor Maximum force on all 3 translation axis. More... | |
virtual void | SetLinearMotorMaxForceOnAxis (Real Force, int Axis) |
For one Axis, set the Maximimum Motor Force. More... | |
virtual void | SetLinearMotorTargetVelocity (const Vector3 &Velocities) |
Set the Target velocity of the motor on each anuglar axis. More... | |
virtual void | SetLinearMotorTargetVelocityOnAxis (Real Velocity, int Axis) |
For one Axis, set the target velocity of the Linear motor. More... | |
virtual void | SetPivotALocation (const Vector3 &Location) |
Set The relative location of the pivot from ActorA's Center of gravity. More... | |
virtual void | SetPivotARotation (const Quaternion &Rotation) |
Set The relative rotation of ActorA. More... | |
virtual void | SetPivotATransform (const Transform &TranA) |
Set the Position and Rotation using a Transform. More... | |
virtual void | SetPivotBLocation (const Vector3 &Location) |
Set The relative location of the pivot from ActorB's Center of gravity. More... | |
virtual void | SetPivotBRotation (const Quaternion &Rotation) |
Set The relative rotation of ActorB. More... | |
virtual void | SetPivotBTransform (const Transform &TranB) |
Set the Position and Rotation using a Transform. More... | |
virtual void | SetUseFrameOffset (bool FrameOffset) |
Set the stored value for UseFrameOffset on this hinge in the physics subsystem(bullet) More... | |
virtual Constraint::AxisList | ValidAngularAxis () const |
Get A list sorted (low to high) of all axis that operate Angularly (that lock sliding/translation) More... | |
virtual Constraint::AxisList | ValidLinearAxis () const |
Get a sorted (low to high) list of all axis that operate linearly (that lock sliding/translation) More... | |
virtual Constraint::ParamList | ValidParamOnAxis (int Axis) const |
Get a sorted (low to high) list of Parameters that are valid on this Axis. More... | |
Static Public Member Functions | |
static String | SerializableName () |
Get the name of the the XML tag this class will leave behind as its instances are serialized. More... | |
Static Public Member Functions inherited from Mezzanine::Physics::DualTransformConstraint | |
static String | SerializableName () |
Get the name of the the XML tag this class will leave behind as its instances are serialized. More... | |
Static Public Member Functions inherited from Mezzanine::Physics::Constraint | |
static String | SerializableName () |
Get the name of the the XML tag this class will leave behind as its instances are serialized. More... | |
Protected Member Functions | |
Generic6DofConstraint () | |
Inheritance Constructor. More... | |
Protected Attributes | |
btGeneric6DofConstraint * | Generic6dof |
Bullet constraint that this class encapsulates. | |
Create simple but specific limits on any axis of movement or rotation.
Provides optional limits on the x, y, and z for rotation and translation. You can get the ID of the axis with ValidLinearAxis() or ValidAngularAxis() for this particular constraint at the time of this writing the constraint axis looked liked this:
This has to perform a larger amount of calculations and should be used only when other simpler constraints have been ruled out.
As with all limits when the upper and lower limits match the two actors will be locked on that axis and relative translation or rotation will not be permitted (within the bounds or error correction). If the Lower limit is lower than the Upper limit a range of translation or rotation will be allowed. If the Lower limit is higher than the Upper limit this will cause the system to realized that no position can satisfy the constraint and no restriction will be enforced.
Each of the Axis also has a motor that can be enabled to cause a specified amount of translation or rotation. To aid in selection of specific Axis, you should use the UsableAxis enum
Definition at line 79 of file generic6dofconstraint.h.
Identify the Axis a bit easier when iterating over them is less convienent than typing an Identifier.
Definition at line 89 of file generic6dofconstraint.h.
|
protected |
Inheritance Constructor.
This is only called by derived classes, and shouldn't be called manually.
Definition at line 58 of file generic6dofconstraint.cpp.
Mezzanine::Physics::Generic6DofConstraint::Generic6DofConstraint | ( | RigidProxy * | ProxyA, |
RigidProxy * | ProxyB, | ||
const Vector3 & | VectorA, | ||
const Vector3 & | VectorB, | ||
const Quaternion & | QuaternionA, | ||
const Quaternion & | QuaternionB, | ||
bool | UseLinearReferenceA = false |
||
) |
Two proxy Verbose constructor.
ProxyA | The First proxy to be bound. |
ProxyB | The Second proxy to be bound. |
VectorA | The offset from ProxyAs center of gravity to get to match an offset from ProxyB. |
VectorB | The offset from ProxyBs center of gravity. |
QuaternionA | Relative rotation from ProxyA. |
QuaternionB | Relative rotation from ProxyB. |
UseLinearReferenceA | Perform Linear math from ProxyA's perspective, default to false. |
Definition at line 67 of file generic6dofconstraint.cpp.
Mezzanine::Physics::Generic6DofConstraint::Generic6DofConstraint | ( | RigidProxy * | ProxyA, |
RigidProxy * | ProxyB, | ||
const Transform & | TransformA, | ||
const Transform & | TransformB, | ||
bool | UseLinearReferenceA = false |
||
) |
Two proxy Terse constructor.
ProxyA | The First proxy to be bound. |
ProxyB | The Second proxy to be bound. |
TransformA | The offset and rotation from ProxyAs center of gravity to get to match an offset from ProxyB. |
TransformB | The offset and rotation from ProxyBs center of gravity. |
UseLinearReferenceA | Perform Linear math from ProxyA's perspective, default to false. |
Definition at line 76 of file generic6dofconstraint.cpp.
Mezzanine::Physics::Generic6DofConstraint::Generic6DofConstraint | ( | RigidProxy * | ProxyB, |
const Vector3 & | VectorB, | ||
const Quaternion & | QuaternionB, | ||
bool | UseLinearReferenceB = true |
||
) |
Body and World Verbose constructor.
ProxyB | The proxy to be bound to the world. |
VectorB | The offset for the ProxyB pivot/hinge/joint. |
QuaternionB | The rotation. |
UseLinearReferenceB | Perform Linear math from ProxyBs perspective, default to true. |
This Joins an object to the world.
Definition at line 82 of file generic6dofconstraint.cpp.
Mezzanine::Physics::Generic6DofConstraint::Generic6DofConstraint | ( | RigidProxy * | ProxyB, |
const Transform & | TransformB, | ||
bool | UseLinearReferenceB = true |
||
) |
Body and World Terse constructor.
ProxyB | The proxy to be bound to the world. |
TransformB | The offset and rotation for the ProxyB pivot/hinge/joint. |
UseLinearReferenceB | Perform Linear math from ProxyB's perspective, default to true. |
This Joins an object to the world.
Definition at line 90 of file generic6dofconstraint.cpp.
|
inlinevirtual |
Convert to internal Axis IDs from external or internal axis IDs.
Axis | the Axis ID to be converted |
Due to the way this is stored internally, All the axis are listed from from 0 to 2. So rather than throw an exception(or have undefined behavior) if the Axis selected one of those, this select the axis like this:
Definition at line 224 of file generic6dofconstraint.h.
|
virtual |
Get the Upper limits on rotation.
Definition at line 171 of file generic6dofconstraint.cpp.
Real Mezzanine::Physics::Generic6DofConstraint::GetAngularLimitLowerOnAxis | ( | int | RotationalAxis) | const |
Get a specific lower rotational limit.
RotationalAxis | The Axis to work with. |
Definition at line 174 of file generic6dofconstraint.cpp.
|
virtual |
Get the Maximimum amount of force applied to ensure limits are not surpassed.
Definition at line 189 of file generic6dofconstraint.cpp.
|
virtual |
Get the Maximimum amount of force applied to ensure a limit one axis is not surpassed.
Axis | The Angular Axis to get, as per AxisToAngularAxis(int). |
Definition at line 192 of file generic6dofconstraint.cpp.
|
virtual |
Get the Power limits on rotation.
Definition at line 168 of file generic6dofconstraint.cpp.
Real Mezzanine::Physics::Generic6DofConstraint::GetAngularLimitUpperOnAxis | ( | int | RotationalAxis) | const |
Get a specific upper rotational limit.
RotationalAxis | The Axis to work with. |
This selects axis with
Definition at line 177 of file generic6dofconstraint.cpp.
|
virtual |
Get the Damping for all Angular Axis.
Definition at line 228 of file generic6dofconstraint.cpp.
|
virtual |
Get the Damping for one given Axis.
Axis | The Angular Axis to get, as per AxisToAngularAxis(int). |
Definition at line 231 of file generic6dofconstraint.cpp.
|
virtual |
Get a Vector3 with 3 zero or nonzero values that store whether or not a given rotational motor is enable.
Definition at line 254 of file generic6dofconstraint.cpp.
|
virtual |
Is a specific rotational motor enabled.
Axis | The Angular Axis to get, as per AxisToAngularAxis(int). |
Definition at line 257 of file generic6dofconstraint.cpp.
|
virtual |
Get the Max Motor Force for each Axis.
Definition at line 215 of file generic6dofconstraint.cpp.
|
virtual |
Get the Max motor Force on a certain Axis.
Axis | The Angular Axis to get, as per AxisToAngularAxis(int). |
Definition at line 218 of file generic6dofconstraint.cpp.
|
virtual |
Get the Restistution values for all three axis.
Definition at line 241 of file generic6dofconstraint.cpp.
|
virtual |
Get the Restistution/Bounciness for a single Axis.
Axis | The Angular Axis to get, as per AxisToAngularAxis(int). |
Definition at line 244 of file generic6dofconstraint.cpp.
|
virtual |
Get the target velocity for all angular Axis.
Definition at line 202 of file generic6dofconstraint.cpp.
|
virtual |
Get the Target Velocity for one axis.
Axis | The Angular Axis to get, as per AxisToAngularAxis(int). |
Definition at line 205 of file generic6dofconstraint.cpp.
|
virtual |
Get the Bullet constraint that this class encapsulates.
Implements Mezzanine::Physics::Constraint.
Definition at line 61 of file generic6dofconstraint.cpp.
|
virtual |
Get the Damping of the linear Limits.
Definition at line 272 of file generic6dofconstraint.cpp.
|
virtual |
Get the Upper limits on translation.
Definition at line 159 of file generic6dofconstraint.cpp.
|
virtual |
Get the Restitution of the linear Limits.
Definition at line 278 of file generic6dofconstraint.cpp.
|
virtual |
Get the Softness of the linear Limits.
Definition at line 266 of file generic6dofconstraint.cpp.
|
virtual |
Get the lower limits on translation.
Limit | A Vector3 that stores the lower limit x, y and z that cannot be exceeded |
Definition at line 156 of file generic6dofconstraint.cpp.
|
virtual |
Get a Vector3 with 3 zero or nonzero values that store whether or not a given rotational motor is enable.
Definition at line 313 of file generic6dofconstraint.cpp.
|
virtual |
Is a specific Linear motor enabled.
Axis | The Linear Axis to get. |
Definition at line 316 of file generic6dofconstraint.cpp.
|
virtual |
Get the Max Motor Force for each Axis.
Definition at line 288 of file generic6dofconstraint.cpp.
|
virtual |
Get the Max motor Force on a certain Axis.
Axis | The Linear Axis to get. |
Definition at line 291 of file generic6dofconstraint.cpp.
|
virtual |
Get the target velocity for all Linear Axis.
Definition at line 300 of file generic6dofconstraint.cpp.
|
virtual |
Get the Target Velocity for one axis.
Axis | The Linear Axis to get. |
Definition at line 303 of file generic6dofconstraint.cpp.
|
virtual |
Get the location of the pivot relative to ActorA's Center of gravity.
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 125 of file generic6dofconstraint.cpp.
|
virtual |
Get the relative rotation for ActorA.
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 138 of file generic6dofconstraint.cpp.
|
virtual |
Get the current Rotation and Location of Actor A.
Implements Mezzanine::Physics::DualTransformConstraint.
Definition at line 112 of file generic6dofconstraint.cpp.
|
virtual |
Get the location of the pivot relative to ActorB's Center of gravity.
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 128 of file generic6dofconstraint.cpp.
|
virtual |
Get the relative rotation for ActorB.
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 141 of file generic6dofconstraint.cpp.
|
virtual |
Get the current Rotation and Location of Actor B.
Implements Mezzanine::Physics::DualTransformConstraint.
Definition at line 115 of file generic6dofconstraint.cpp.
|
virtual |
Retrieve the stored value from the physics subsystem(bullet)
Definition at line 364 of file generic6dofconstraint.cpp.
|
virtual |
Implements Mezzanine::Physics::Constraint.
Definition at line 354 of file generic6dofconstraint.cpp.
|
virtual |
Take the data stored in an XML and overwrite this instance of this object with it.
OneNode | and XML::Node containing the data. |
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Reimplemented in Mezzanine::Physics::Generic6DofSpringConstraint.
Definition at line 471 of file generic6dofconstraint.cpp.
|
virtual |
Convert this class to an XML::Node ready for serialization.
CurrentRoot | The point in the XML hierarchy that all this vectorw should be appended to. |
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Reimplemented in Mezzanine::Physics::Generic6DofSpringConstraint.
Definition at line 373 of file generic6dofconstraint.cpp.
|
static |
Get the name of the the XML tag this class will leave behind as its instances are serialized.
Definition at line 573 of file generic6dofconstraint.cpp.
|
virtual |
Set the Lower limits on rotation.
Limit | A Vector3 that store the upper limit x, y and z rotation in radians |
Definition at line 165 of file generic6dofconstraint.cpp.
|
virtual |
Set the Maximimum amount of force applied to ensure limits are not surpassed.
MaxLimitForces | A Vector3 containing the X, Y and Z Maximium forces. |
Definition at line 183 of file generic6dofconstraint.cpp.
|
virtual |
Set the Maximimum amount of force applied to ensure a limit on one axis is not surpassed.
MaxLimitForce | The new maximum force. |
Axis | The Angular Axis to be set, as per AxisToAngularAxis(int). |
Definition at line 186 of file generic6dofconstraint.cpp.
|
virtual |
Set the Upper limits on rotation.
Limit | A Vector3 that store the lower limit x, y and z rotation in radians |
Definition at line 162 of file generic6dofconstraint.cpp.
|
virtual |
Set the Angular Motor Damping for each Angular Axis.
Dampings | A Vector3 with Damping value for the X, Y and Z axis. |
Definition at line 222 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set the Damping.
Damping | The new amount to Damp rotation on the given Axis. |
Axis | The Angular Axis to be set, as per AxisToAngularAxis(int). |
Definition at line 225 of file generic6dofconstraint.cpp.
|
virtual |
Set whether or not the motor is enabled for all Axis Simultaneously.
Enableds | A Vector3 that will be interpretted as 3 true/false values where 0 is false and any other value it true. |
Definition at line 248 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set whether or not the motor is enabled.
Enabled | Is the motor enabled? TRue for yes, false for no. |
Axis | The Angular Axis to be set, as per AxisToAngularAxis(int). |
Definition at line 251 of file generic6dofconstraint.cpp.
|
virtual |
Set the Angular Motor Maximum force on all 3 rotational axis.
Forces | A Vector3 with the Max Motor Force for each axis. |
Definition at line 209 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set the Maximimum Motor Force.
Force | The new Max motor force. |
Axis | The Angular Axis to be set, as per AxisToAngularAxis(int). |
Definition at line 212 of file generic6dofconstraint.cpp.
|
virtual |
Set the Bounciness/Restition for rotation on all three Axis.
Restistutions | A Vector3 containing all the New Bounciness values |
Definition at line 235 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set the Restistution/Bounciness/.
Restistution | The new value for the given Axis. |
Axis | The Angular Axis to be set, as per AxisToAngularAxis(int). |
Definition at line 238 of file generic6dofconstraint.cpp.
|
virtual |
Set the Target velocity of the motor on each anuglar axis.
Velocities | A Vector3 containing the X, Y and Z Target Velocites. |
Definition at line 196 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set the target velocity of the angular motor.
Velocity | The new Target Velovity. |
Axis | The Angular Axis to be set, as per AxisToAngularAxis(int). |
Definition at line 199 of file generic6dofconstraint.cpp.
|
virtual |
Change the upper and lower limit for one axis of translation or rotation limit.
Axis | The axis to change |
Lower | The new lower limit |
UpperThe | new Higher limit |
Definition at line 147 of file generic6dofconstraint.cpp.
|
virtual |
Set the Damping of the linear Limits.
Damping | The new damping value placed on forces the limits impose |
Definition at line 269 of file generic6dofconstraint.cpp.
|
virtual |
Set the Upper limits on translation.
Definition at line 153 of file generic6dofconstraint.cpp.
|
virtual |
Set the Restitution of the linear Limits.
Restitution | How bouncy are the limits. |
Definition at line 275 of file generic6dofconstraint.cpp.
|
virtual |
Set the Softness of the linear Limits.
Softness | How spongy, how much give does the constraint have. |
Definition at line 263 of file generic6dofconstraint.cpp.
|
virtual |
Set the lower limits on translation.
Limit | A Vector3 that stores the lower limit x, y and z that cannot be exceeded |
Definition at line 150 of file generic6dofconstraint.cpp.
|
virtual |
Set whether or not the motor is enabled for all Linear Axis Simultaneously.
Enableds | A Vector3 that will be interpretted as 3 true/false values where 0 is false and any other value it true. |
Definition at line 307 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set whether or not the motor is enabled.
Enabled | Is the motor enabled? True for yes, false for no. |
Axis | The Linear Axis to be set. |
Definition at line 310 of file generic6dofconstraint.cpp.
|
virtual |
Set the Linear Motor Maximum force on all 3 translation axis.
Forces | A Vector3 with the Max Motor Force for each axis. |
Definition at line 282 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set the Maximimum Motor Force.
Force | The new Max motor force. |
Axis | The Linear Axis to be set. |
Definition at line 285 of file generic6dofconstraint.cpp.
|
virtual |
Set the Target velocity of the motor on each anuglar axis.
Velocities | A Vector3 containing the X, Y and Z Target Velocites. |
Definition at line 294 of file generic6dofconstraint.cpp.
|
virtual |
For one Axis, set the target velocity of the Linear motor.
Velocity | The new Target Velovity. |
Axis | The Linear Axis to be set. |
Definition at line 297 of file generic6dofconstraint.cpp.
|
virtual |
Set The relative location of the pivot from ActorA's Center of gravity.
Location | The New value for PivotA |
Ultimately this information winds up being stored in the TransformA.
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 119 of file generic6dofconstraint.cpp.
|
virtual |
Set The relative rotation of ActorA.
Rotation | The new rotation amount for A |
Ultimately this information winds up being stored in the TransformA
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 132 of file generic6dofconstraint.cpp.
|
virtual |
Set the Position and Rotation using a Transform.
TranA | The new Position and rotation |
Implements Mezzanine::Physics::DualTransformConstraint.
Definition at line 106 of file generic6dofconstraint.cpp.
|
virtual |
Set The relative location of the pivot from ActorB's Center of gravity.
Location | The New value for PivotB |
Ultimately this information winds up being stored in the TransformB
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 122 of file generic6dofconstraint.cpp.
|
virtual |
Set The relative rotation of ActorB.
otation | The new rotation amount for B |
Ultimately this information winds up being stored in the TransformB
Reimplemented from Mezzanine::Physics::DualTransformConstraint.
Definition at line 135 of file generic6dofconstraint.cpp.
|
virtual |
Set the Position and Rotation using a Transform.
TranB | The new Position and rotation |
Implements Mezzanine::Physics::DualTransformConstraint.
Definition at line 109 of file generic6dofconstraint.cpp.
|
virtual |
Set the stored value for UseFrameOffset on this hinge in the physics subsystem(bullet)
FrameOffset | The new desired value. |
Definition at line 367 of file generic6dofconstraint.cpp.
|
virtual |
Get A list sorted (low to high) of all axis that operate Angularly (that lock sliding/translation)
Implements Mezzanine::Physics::Constraint.
Definition at line 345 of file generic6dofconstraint.cpp.
|
virtual |
Get a sorted (low to high) list of all axis that operate linearly (that lock sliding/translation)
Implements Mezzanine::Physics::Constraint.
Definition at line 336 of file generic6dofconstraint.cpp.
|
virtual |
Get a sorted (low to high) list of Parameters that are valid on this Axis.
Parameters returned from this will work on the given axis even if they are not valid on any other axis. There is no guarantee that the Parameters will be uniquely stored per an axis. There is no guarantee that changing one parameter will not change another.
Axis | the Axis to check. |
Implements Mezzanine::Physics::Constraint.
Definition at line 324 of file generic6dofconstraint.cpp.