Table of Contents

Class GravityController

Namespace
Alis.Core.Physic.Controllers
Assembly
Alis.dll

The gravity controller class

public class GravityController : Controller

Inheritance

Inherited Members

Constructors

GravityController(float)

Initializes a new instance of the Alis.Core.Physic.Controllers.GravityController class

public GravityController(float strength)

Parameters

strength float

The strength

GravityController(float, float, float)

Initializes a new instance of the Alis.Core.Physic.Controllers.GravityController class

public GravityController(float strength, float maxRadius, float minRadius)

Parameters

strength float

The strength

maxRadius float

The max radius

minRadius float

The min radius

Properties

Bodies

Gets or sets the value of the bodies

public List<Body> Bodies { get; set; }

Property Value

List<Body>

GravityType

Gets or sets the value of the gravity type

public GravityType GravityType { get; set; }

Property Value

GravityType

MaxRadius

Gets or sets the value of the max radius

public float MaxRadius { get; set; }

Property Value

float

MinRadius

Gets or sets the value of the min radius

public float MinRadius { get; set; }

Property Value

float

Points

Gets or sets the value of the points

public List<Vector2> Points { get; set; }

Property Value

List<Vector2>

Strength

Gets or sets the value of the strength

public float Strength { get; set; }

Property Value

float

Methods

AddBody(Body)

Adds the body using the specified body

public void AddBody(Body body)

Parameters

body Body

The body

AddPoint(Vector2)

Adds the point using the specified point

public void AddPoint(Vector2 point)

Parameters

point Vector2

The point

Update(float)

Updates the dt

public override void Update(float dt)

Parameters

dt float

The dt

See Also