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
Properties
Bodies
Gets or sets the value of the bodies
public List<Body> Bodies { get; set; }
Property Value
GravityType
Gets or sets the value of the gravity type
public GravityType GravityType { get; set; }
Property Value
MaxRadius
Gets or sets the value of the max radius
public float MaxRadius { get; set; }
Property Value
MinRadius
Gets or sets the value of the min radius
public float MinRadius { get; set; }
Property Value
Points
Gets or sets the value of the points
public List<Vector2> Points { get; set; }
Property Value
Strength
Gets or sets the value of the strength
public float Strength { get; set; }
Property Value
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