Interface IRevoluteJoint2D
Interface for a Revolute Joint 2D physics.
Inherited Members
Namespace: Evergine.Common.Physics2D
Assembly: Evergine.Common.dll
Syntax
public interface IRevoluteJoint2D : IJoint2D
Properties
EnableLimits
Gets or sets a value indicating whether the joint limits are enabled.
Declaration
bool EnableLimits { get; set; }
Property Value
Type | Description |
---|---|
bool |
EnableMotor
Gets or sets a value indicating whether the motor is enabled.
Declaration
bool EnableMotor { get; set; }
Property Value
Type | Description |
---|---|
bool |
JointAngle
Gets the current joint angle in radians.
Declaration
float JointAngle { get; }
Property Value
Type | Description |
---|---|
float |
JointAngleSpeed
Gets the current joint angle speed in radians per second.
Declaration
float JointAngleSpeed { get; }
Property Value
Type | Description |
---|---|
float |
LowerAngle
Gets the lower angle for the joint limit (radians).
Declaration
float LowerAngle { get; }
Property Value
Type | Description |
---|---|
float |
MaxMotorTorque
Gets or sets the maximum motor torque used to achieve the desired motor speed. Usually in N-m.
Declaration
float MaxMotorTorque { get; set; }
Property Value
Type | Description |
---|---|
float |
MotorSpeed
Gets or sets the desired motor speed. Usually in radians per second.
Declaration
float MotorSpeed { get; set; }
Property Value
Type | Description |
---|---|
float |
MotorTorque
Gets the current motor torque given the inverse time step. Unit is N*m.
Declaration
float MotorTorque { get; }
Property Value
Type | Description |
---|---|
float |
ReferenceAngle
Gets the reference angle.
Declaration
float ReferenceAngle { get; }
Property Value
Type | Description |
---|---|
float |
UpperAngle
Gets the upper angle for the joint limit (radians).
Declaration
float UpperAngle { get; }
Property Value
Type | Description |
---|---|
float |
Methods
SetLimits(float, float)
Sets the joint limits.
Declaration
void SetLimits(float lower, float upper)
Parameters
Type | Name | Description |
---|---|---|
float | lower | The lower limit. |
float | upper | The upper limit. |