C# 클래스 Nez.Farseer.FSGenericBody

simple Component that will sync the position/rotation of the physics Body with the Transform. The GenericBody.transform.position will always match Body.Position. Note that scale is not considered here.
상속: Component, IUpdatable
파일 보기 프로젝트 열기: prime31/Nez

공개 프로퍼티들

프로퍼티 타입 설명
body FarseerPhysics.Dynamics.Body

공개 메소드들

메소드 설명
FSGenericBody ( ) : FarseerPhysics.Dynamics
FSGenericBody ( Body body ) : FarseerPhysics.Dynamics

creates with a preexisting Body. Be aware that the Transform.position will be updated to match the Body.position.

IUpdatable ( ) : void
initialize ( ) : void
onEntityTransformChanged ( Transform comp ) : void
onRemovedFromEntity ( ) : void
setBodyType ( BodyType bodyType ) : FSGenericBody

메소드 상세

FSGenericBody() 공개 메소드

public FSGenericBody ( ) : FarseerPhysics.Dynamics
리턴 FarseerPhysics.Dynamics

FSGenericBody() 공개 메소드

creates with a preexisting Body. Be aware that the Transform.position will be updated to match the Body.position.
public FSGenericBody ( Body body ) : FarseerPhysics.Dynamics
body FarseerPhysics.Dynamics.Body Body.
리턴 FarseerPhysics.Dynamics

IUpdatable() 공개 메소드

public IUpdatable ( ) : void
리턴 void

initialize() 공개 메소드

public initialize ( ) : void
리턴 void

onEntityTransformChanged() 공개 메소드

public onEntityTransformChanged ( Transform comp ) : void
comp Transform
리턴 void

onRemovedFromEntity() 공개 메소드

public onRemovedFromEntity ( ) : void
리턴 void

setBodyType() 공개 메소드

public setBodyType ( BodyType bodyType ) : FSGenericBody
bodyType BodyType
리턴 FSGenericBody

프로퍼티 상세

body 공개적으로 프로퍼티

public Body,FarseerPhysics.Dynamics body
리턴 FarseerPhysics.Dynamics.Body