C# Класс Box2DX.Dynamics.PrismaticJoint

A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction.
Наследование: Joint
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
_K Box2DX.Common.Mat33
_a1 float
_axis Box2DX.Common.Vec2
_enableLimit bool
_enableMotor bool
_impulse Box2DX.Common.Vec3
_limitState LimitState
_localAnchor1 Box2DX.Common.Vec2
_localAnchor2 Box2DX.Common.Vec2
_localXAxis1 Box2DX.Common.Vec2
_localYAxis1 Box2DX.Common.Vec2
_lowerTranslation float
_maxMotorForce float
_motorImpulse float
_motorMass float
_motorSpeed float
_refAngle float
_s1 float
_upperTranslation float

Открытые методы

Метод Описание
EnableLimit ( bool flag ) : void

Enable/disable the joint limit.

EnableMotor ( bool flag ) : void

Enable/disable the joint motor.

GetReactionForce ( float inv_dt ) : Vec2
GetReactionTorque ( float inv_dt ) : float
PrismaticJoint ( PrismaticJointDef def ) : System
SetLimits ( float lower, float upper ) : void

Set the joint limits, usually in meters.

SetMaxMotorForce ( float force ) : void

Set the maximum motor force, usually in N.

Приватные методы

Метод Описание
InitVelocityConstraints ( TimeStep step ) : void
SolvePositionConstraints ( float baumgarte ) : bool
SolveVelocityConstraints ( TimeStep step ) : void

Описание методов

EnableLimit() публичный Метод

Enable/disable the joint limit.
public EnableLimit ( bool flag ) : void
flag bool
Результат void

EnableMotor() публичный Метод

Enable/disable the joint motor.
public EnableMotor ( bool flag ) : void
flag bool
Результат void

GetReactionForce() публичный Метод

public GetReactionForce ( float inv_dt ) : Vec2
inv_dt float
Результат Box2DX.Common.Vec2

GetReactionTorque() публичный Метод

public GetReactionTorque ( float inv_dt ) : float
inv_dt float
Результат float

PrismaticJoint() публичный Метод

public PrismaticJoint ( PrismaticJointDef def ) : System
def PrismaticJointDef
Результат System

SetLimits() публичный Метод

Set the joint limits, usually in meters.
public SetLimits ( float lower, float upper ) : void
lower float
upper float
Результат void

SetMaxMotorForce() публичный Метод

Set the maximum motor force, usually in N.
public SetMaxMotorForce ( float force ) : void
force float
Результат void

Описание свойств

_K публичное свойство

public Mat33,Box2DX.Common _K
Результат Box2DX.Common.Mat33

_a1 публичное свойство

public float _a1
Результат float

_axis публичное свойство

public Vec2,Box2DX.Common _axis
Результат Box2DX.Common.Vec2

_enableLimit публичное свойство

public bool _enableLimit
Результат bool

_enableMotor публичное свойство

public bool _enableMotor
Результат bool

_impulse публичное свойство

public Vec3,Box2DX.Common _impulse
Результат Box2DX.Common.Vec3

_limitState публичное свойство

public LimitState _limitState
Результат LimitState

_localAnchor1 публичное свойство

public Vec2,Box2DX.Common _localAnchor1
Результат Box2DX.Common.Vec2

_localAnchor2 публичное свойство

public Vec2,Box2DX.Common _localAnchor2
Результат Box2DX.Common.Vec2

_localXAxis1 публичное свойство

public Vec2,Box2DX.Common _localXAxis1
Результат Box2DX.Common.Vec2

_localYAxis1 публичное свойство

public Vec2,Box2DX.Common _localYAxis1
Результат Box2DX.Common.Vec2

_lowerTranslation публичное свойство

public float _lowerTranslation
Результат float

_maxMotorForce публичное свойство

public float _maxMotorForce
Результат float

_motorImpulse публичное свойство

public float _motorImpulse
Результат float

_motorMass публичное свойство

public float _motorMass
Результат float

_motorSpeed публичное свойство

public float _motorSpeed
Результат float

_refAngle публичное свойство

public float _refAngle
Результат float

_s1 публичное свойство

public float _s1
Результат float

_upperTranslation публичное свойство

public float _upperTranslation
Результат float