C# Class FarseerPhysics.Controllers.BuoyancyController

Inheritance: Controller
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
AngularDragCoefficient float
Density float
LinearDragCoefficient float
Velocity Microsoft.Xna.Framework.Vector2

Méthodes publiques

Méthode Description
BuoyancyController ( AABB container, float density, float linearDragCoefficient, float rotationalDragCoefficient, Vector2 gravity ) : System.Collections.Generic

Initializes a new instance of the BuoyancyController class.

Update ( float dt ) : void

Method Details

BuoyancyController() public méthode

Initializes a new instance of the BuoyancyController class.
public BuoyancyController ( AABB container, float density, float linearDragCoefficient, float rotationalDragCoefficient, Vector2 gravity ) : System.Collections.Generic
container FarseerPhysics.Collision.AABB Only bodies inside this AABB will be influenced by the controller
density float Density of the fluid
linearDragCoefficient float Linear drag coefficient of the fluid
rotationalDragCoefficient float Rotational drag coefficient of the fluid
gravity Microsoft.Xna.Framework.Vector2 The direction gravity acts. Buoyancy force will act in opposite direction of gravity.
Résultat System.Collections.Generic

Update() public méthode

public Update ( float dt ) : void
dt float
Résultat void

Property Details

AngularDragCoefficient public_oe property

Controls the rotational drag that the fluid exerts on the bodies within it. Use higher values will simulate thick fluid, like honey, lower values to simulate water-like fluids.
public float AngularDragCoefficient
Résultat float

Density public_oe property

Density of the fluid. Higher values will make things more buoyant, lower values will cause things to sink.
public float Density
Résultat float

LinearDragCoefficient public_oe property

Controls the linear drag that the fluid exerts on the bodies within it. Use higher values will simulate thick fluid, like honey, lower values to simulate water-like fluids.
public float LinearDragCoefficient
Résultat float

Velocity public_oe property

Acts like waterflow. Defaults to 0,0.
public Vector2,Microsoft.Xna.Framework Velocity
Résultat Microsoft.Xna.Framework.Vector2