Class SphericalJoint
Physics joint that removes all translational degrees of freedom but allows all rotational degrees of freedom. Essentially this ensures that the anchor points of the two bodies are always coincident. Bodies are allowed to rotate around the anchor points, and their rotation can be limited by an elliptical cone.
Inherited Members
Assembly: FlaxEngine.dll
File: Engine/Physics/Joints/SphericalJoint.h
Syntax
public class SphericalJoint : public Joint
Methods
CreateJoint(const PhysicsJointDesc& desc)
Declaration
protected void* CreateJoint(const PhysicsJointDesc& desc) override
Parameters
PhysicsJointDesc
desc
|
Returns
void
|
Deserialize(DeserializeStream& stream, ISerializeModifier* modifier)
Deserializes object from the input stream.
Declaration
public virtual void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override
Parameters
DeserializeStream
stream
The input stream. |
ISerializeModifier
modifier
The deserialization modifier object. Always valid. |
Overrides
GetFlags()
Gets the joint mode flags. Controls joint behaviour.
Declaration
public SphericalJointFlag GetFlags() const
Returns
SphericalJointFlag
|
GetLimit()
Gets the joint limit properties.
Determines the limit of the joint. Limit constrains the motion to the specified angle range. You must enable the limit flag on the joint in order for this to be recognized.
Declaration
public LimitConeRange GetLimit() const
Returns
LimitConeRange
|
OnDebugDrawSelected()
Draws debug shapes for the selected actor and all child scripts.
Declaration
public virtual void OnDebugDrawSelected() override
Overrides
Serialize(SerializeStream& stream, const void* otherObj)
Serializes object to the output stream compared to the values of the other object instance (eg. default class object). If other object is null then serialize all properties.
Declaration
public virtual void Serialize(SerializeStream& stream, const void* otherObj) override
Parameters
SerializeStream
stream
The output stream. |
void
otherObj
The instance of the object to compare with and serialize only the modified properties. If null, then serialize all properties. |
Overrides
SetFlags(const SphericalJointFlag value)
Sets the joint mode flags. Controls joint behaviour.
Declaration
public void SetFlags(const SphericalJointFlag value)
Parameters
SphericalJointFlag
value
|
SetLimit(const LimitConeRange& value)
Sets the joint limit properties.
Determines a limit that constrains the movement of the joint to a specific minimum and maximum distance. You must enable the limit flag on the joint in order for this to be recognized.
Declaration
public void SetLimit(const LimitConeRange& value)
Parameters
LimitConeRange
value
|