Click or drag to resize

RevoluteJoint Class

A revolute joint constrains to bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated.
Inheritance Hierarchy
SystemObject
  Internal.tainicom.Aether.Physics2D.Dynamics.JointsJoint
    Internal.tainicom.Aether.Physics2D.Dynamics.JointsRevoluteJoint

Namespace:  Internal.tainicom.Aether.Physics2D.Dynamics.Joints
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public class RevoluteJoint : Joint

The RevoluteJoint type exposes the following members.

Constructors
  NameDescription
Public methodRevoluteJoint(Body, Body, Vector2, Boolean)
Constructor of RevoluteJoint.
Public methodRevoluteJoint(Body, Body, Vector2, Vector2, Boolean)
Constructor of RevoluteJoint.
Top
Properties
  NameDescription
Public propertyBodyA
Get the first body attached to this joint.
(Inherited from Joint.)
Public propertyBodyB
Get the second body attached to this joint.
(Inherited from Joint.)
Public propertyBreakpoint
The Breakpoint simply indicates the maximum Value the JointError can be before it breaks. The default value is float.MaxValue, which means it never breaks.
(Inherited from Joint.)
Public propertyCollideConnected
Set this flag to true if the attached bodies should collide.
(Inherited from Joint.)
Public propertyJointAngle
Get the current joint angle in radians.
Public propertyJointSpeed
Get the current joint angle speed in radians per second.
Public propertyJointType
Gets or sets the type of the joint.
(Inherited from Joint.)
Public propertyLimitEnabled
Is the joint limit enabled?
Public propertyLocalAnchorA
The local anchor point on BodyA
Public propertyLocalAnchorB
The local anchor point on BodyB
Public propertyLowerLimit
Get the lower joint limit in radians.
Public propertyMaxMotorTorque
Get or set the maximum motor torque, usually in N-m.
Public propertyMotorEnabled
Is the joint motor enabled?
Public propertyMotorImpulse
Get or set the current motor impulse, usually in N-m.
Public propertyMotorSpeed
Get or set the motor speed in radians per second.
Public propertyReferenceAngle
The referance angle computed as BodyB angle minus BodyA angle.
Public propertyUpperLimit
Get the upper joint limit in radians.
Public propertyWorld
Get the parent World of this joint. This is null if the joint is not attached.
(Inherited from Joint.)
Public propertyWorldAnchorA (Overrides JointWorldAnchorA.)
Public propertyWorldAnchorB (Overrides JointWorldAnchorB.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMotorTorque
Gets the motor torque in N-m.
Public methodGetReactionForce (Overrides JointGetReactionForce(Single).)
Public methodGetReactionTorque (Overrides JointGetReactionTorque(Single).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsFixedType
Return true if the joint is a fixed type.
(Inherited from Joint.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetLimits
Set the joint limits, usually in meters.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodWakeBodies (Inherited from Joint.)
Top
Events
  NameDescription
Public eventBroke
Fires when the joint is broken.
(Inherited from Joint.)
Top
Fields
  NameDescription
Public fieldEnabled
Indicate if this join is enabled or not. Disabling a joint means it is still in the simulation, but inactive.
(Inherited from Joint.)
Public fieldTag
Set the user data pointer.
(Inherited from Joint.)
Top
Extension Methods
See Also