Interface IPrismaticJoint2D
Interface for a Prismatic Joint 2D physics.
Inherited Members
Namespace: Evergine.Common.Physics2D
Assembly: Evergine.Common.dll
Syntax
public interface IPrismaticJoint2D : 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 |
JointTranslation
Gets the current joint translation, usually in meters.
Declaration
float JointTranslation { get; }
Property Value
Type | Description |
---|---|
float |
JointTranslationSpeed
Gets the current joint translation speed, usually in meters per second.
Declaration
float JointTranslationSpeed { get; }
Property Value
Type | Description |
---|---|
float |
LowerLimit
Gets the lower angle for the joint limit (radians).
Declaration
float LowerLimit { get; }
Property Value
Type | Description |
---|---|
float |
MaxMotorForce
Gets or sets the maximum motor torque used to achieve the desired motor speed. Usually in N-m.
Declaration
float MaxMotorForce { get; set; }
Property Value
Type | Description |
---|---|
float |
MotorForce
Gets the current motor force given the inverse time step, usually in N.
Declaration
float MotorForce { get; }
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 |
ReferenceAngle
Gets the reference angle.
Declaration
float ReferenceAngle { get; }
Property Value
Type | Description |
---|---|
float |
UpperLimit
Gets the upper angle for the joint limit (radians).
Declaration
float UpperLimit { 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. |