C# Class 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.
Inheritance: Component, IUpdatable
Mostrar archivo Open project: prime31/Nez

Public Properties

Property Type Description
body FarseerPhysics.Dynamics.Body

Public Methods

Method Description
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

Method Details

FSGenericBody() public method

public FSGenericBody ( ) : FarseerPhysics.Dynamics
return FarseerPhysics.Dynamics

FSGenericBody() public method

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.
return FarseerPhysics.Dynamics

IUpdatable() public method

public IUpdatable ( ) : void
return void

initialize() public method

public initialize ( ) : void
return void

onEntityTransformChanged() public method

public onEntityTransformChanged ( Transform comp ) : void
comp Transform
return void

onRemovedFromEntity() public method

public onRemovedFromEntity ( ) : void
return void

setBodyType() public method

public setBodyType ( BodyType bodyType ) : FSGenericBody
bodyType BodyType
return FSGenericBody

Property Details

body public_oe property

public Body,FarseerPhysics.Dynamics body
return FarseerPhysics.Dynamics.Body