C# 클래스 Box2DX.Dynamics.LineJointDef

Line joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game.
상속: JointDef
파일 보기 프로젝트 열기: danielpcox/Crisis-at-Swiss-Station 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
enableLimit bool
enableMotor bool
localAnchor1 Box2DX.Common.Vec2
localAnchor2 Box2DX.Common.Vec2
localAxis1 Box2DX.Common.Vec2
lowerTranslation float
maxMotorForce float
motorSpeed float
upperTranslation float

공개 메소드들

메소드 설명
Initialize ( Body body1, Body body2, Vec2 anchor, Vec2 axis ) : void

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.

LineJointDef ( ) : System

메소드 상세

Initialize() 공개 메소드

Initialize the bodies, anchors, axis, and reference angle using the world anchor and world axis.
public Initialize ( Body body1, Body body2, Vec2 anchor, Vec2 axis ) : void
body1 Body
body2 Body
anchor Box2DX.Common.Vec2
axis Box2DX.Common.Vec2
리턴 void

LineJointDef() 공개 메소드

public LineJointDef ( ) : System
리턴 System

프로퍼티 상세

enableLimit 공개적으로 프로퍼티

Enable/disable the joint limit.
public bool enableLimit
리턴 bool

enableMotor 공개적으로 프로퍼티

Enable/disable the joint motor.
public bool enableMotor
리턴 bool

localAnchor1 공개적으로 프로퍼티

The local anchor point relative to body1's origin.
public Vec2,Box2DX.Common localAnchor1
리턴 Box2DX.Common.Vec2

localAnchor2 공개적으로 프로퍼티

The local anchor point relative to body2's origin.
public Vec2,Box2DX.Common localAnchor2
리턴 Box2DX.Common.Vec2

localAxis1 공개적으로 프로퍼티

The local translation axis in body1.
public Vec2,Box2DX.Common localAxis1
리턴 Box2DX.Common.Vec2

lowerTranslation 공개적으로 프로퍼티

The lower translation limit, usually in meters.
public float lowerTranslation
리턴 float

maxMotorForce 공개적으로 프로퍼티

The maximum motor torque, usually in N-m.
public float maxMotorForce
리턴 float

motorSpeed 공개적으로 프로퍼티

The desired motor speed in radians per second.
public float motorSpeed
리턴 float

upperTranslation 공개적으로 프로퍼티

The upper translation limit, usually in meters.
public float upperTranslation
리턴 float