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
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Свойство Type Description
body FarseerPhysics.Dynamics.Body

Méthodes publiques

Méthode 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 méthode

public FSGenericBody ( ) : FarseerPhysics.Dynamics
Résultat FarseerPhysics.Dynamics

FSGenericBody() public méthode

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.
Résultat FarseerPhysics.Dynamics

IUpdatable() public méthode

public IUpdatable ( ) : void
Résultat void

initialize() public méthode

public initialize ( ) : void
Résultat void

onEntityTransformChanged() public méthode

public onEntityTransformChanged ( Transform comp ) : void
comp Transform
Résultat void

onRemovedFromEntity() public méthode

public onRemovedFromEntity ( ) : void
Résultat void

setBodyType() public méthode

public setBodyType ( BodyType bodyType ) : FSGenericBody
bodyType BodyType
Résultat FSGenericBody

Property Details

body public_oe property

public Body,FarseerPhysics.Dynamics body
Résultat FarseerPhysics.Dynamics.Body