Struct JointLimit3D
- Namespace
- Gravitas.Constraints
- Assembly
- Gravitas.dll
Optional deterministic angular limit payload for a 3D joint.
public readonly struct JointLimit3D
- Inherited Members
Properties
Kind
Gets the active limit family.
public JointLimitKind3D Kind { get; }
Property Value
MaxConeAngle
Gets the maximum cone swing angle in radians.
public Fixed64 MaxConeAngle { get; }
Property Value
- Fixed64
MaxHingeAngle
Gets the maximum absolute hinge angle in radians.
public Fixed64 MaxHingeAngle { get; }
Property Value
- Fixed64
MaxTwistAngle
Gets the maximum absolute twist angle in radians.
public Fixed64 MaxTwistAngle { get; }
Property Value
- Fixed64
Unrestricted
Gets an unrestricted limit payload.
public static JointLimit3D Unrestricted { get; }
Property Value
Methods
ConeTwist(Fixed64, Fixed64)
Creates a cone-twist limit around the local Z axis.
public static JointLimit3D ConeTwist(Fixed64 maxConeAngle, Fixed64 maxTwistAngle)
Parameters
maxConeAngleFixed64maxTwistAngleFixed64
Returns
Hinge(Fixed64)
Creates a hinge limit around the local X axis.
public static JointLimit3D Hinge(Fixed64 maxAngle)
Parameters
maxAngleFixed64