GravityController
Declaration
public class tainicom.Aether.Physics2D.Controllers.GravityController
Inherits: tainicom.Aether.Physics2D.Controllers.Controller
Constructors
GravityController
void GravityController(float strength)
Parameters:
| Name | Type | Description |
|---|---|---|
strength |
System.Single |
GravityController
void GravityController(float strength, float maxRadius, float minRadius)
Parameters:
| Name | Type | Description |
|---|---|---|
strength |
System.Single |
|
maxRadius |
System.Single |
|
minRadius |
System.Single |
Properties
MinRadius
float MinRadius { get set }
MaxRadius
float MaxRadius { get set }
Strength
float Strength { get set }
GravityType
GravityType GravityType { get set }
Bodies
List<Body> Bodies { get set }
Points
List<Vector2> Points { get set }
Methods
Update override
void Update(float dt)
Parameters:
| Name | Type | Description |
|---|---|---|
dt |
System.Single |
AddBody
void AddBody(Body body)
Parameters:
| Name | Type | Description |
|---|---|---|
body |
tainicom.Aether.Physics2D.Dynamics.Body |
AddPoint
void AddPoint(Vector2 point)
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Strawberry.Math.Vector2 |