C# 클래스 FarseerPhysics.Controllers.BuoyancyController

상속: Controller
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
AngularDragCoefficient float
Density float
LinearDragCoefficient float
Velocity Microsoft.Xna.Framework.Vector2

공개 메소드들

메소드 설명
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

메소드 상세

BuoyancyController() 공개 메소드

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.
리턴 System.Collections.Generic

Update() 공개 메소드

public Update ( float dt ) : void
dt float
리턴 void

프로퍼티 상세

AngularDragCoefficient 공개적으로 프로퍼티

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
리턴 float

Density 공개적으로 프로퍼티

Density of the fluid. Higher values will make things more buoyant, lower values will cause things to sink.
public float Density
리턴 float

LinearDragCoefficient 공개적으로 프로퍼티

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
리턴 float

Velocity 공개적으로 프로퍼티

Acts like waterflow. Defaults to 0,0.
public Vector2,Microsoft.Xna.Framework Velocity
리턴 Microsoft.Xna.Framework.Vector2