|
|
| CircleCollider (float radius) |
| |
|
| CircleCollider (float radius, bool debugged) |
| |
|
| CircleCollider (float radius, string collisionLayer, bool debugged=false) |
| |
|
| CircleCollider (float radius, Vector2 offset, string collisionLayer, bool debugged=false) |
| |
|
| CircleCollider (float radius, Vector2 offset, bool debugged=false) |
| |
| override void | DrawDebug () |
| | Define how to draw the verlet object for debugging (eg, draw the collider outline)
|
| |
| override void | SolveCollision (PolygonCollider other, Vector2 velocity) |
| | Circle Colliding potentially with another circle.
|
| |
|
override void | SolveCollision (CircleCollider obj2, Vector2 velocity) |
| |
|
void | ResolveCollision (CircleCollider other, Vector2 collisionVector) |
| |
|
override bool | PointInsideCollider (PointF point) |
| |
|
float | GetRadius () |
| |
|
override void | CalculateAABB () |
| |
|
delegate void | TriggerEvent (Collider collidedWith) |
| |
|
delegate void | CollisionEvent (Collider collidedWith) |
| |
|
| Collider (Vector2 offset, string layer, bool debug) |
| |
|
| Collider (string layer, bool debug) |
| |
|
| Collider (bool debug) |
| |
|
| Collider (Vector2 offset, bool debug) |
| |
|
void | updatePosition (float dt) |
| |
|
void | SetVelocity (Vector2 externalVelocity) |
| |
|
void | accelerate (Vector2 acc) |
| |
|
Vector2 | GetOldPosition () |
| |
|
Vector2 | GetLocalNodePosition () |
| | Gets local position from the node as a Vector2 This method is used for velocity.
|
| |
| Vector2 | GetGlobalColliderPosition () |
| | Gets global position from the node as a Vector2 This method is used for collision detection.
|
| |
| void | SetNodePosition (Vector2 position) |
| | Sets the position of the Node.
|
| |
|
Vector2 | GetOffset () |
| |
|
void | SetOffset (Vector2 offset) |
| |
|
float | GetRotation () |
| |
|
void | SetRotation (float r) |
| |
|
AABB | GetAABB () |
| |
|
void | SetStatic (bool b) |
| |
|
bool | IsStatic () |
| |
|
void | SetTrigger (bool b) |
| |
|
bool | IsTrigger () |
| |
|
void | SetLayer (string layer) |
| |
|
string | GetLayer () |
| |
|
bool | IsAABBOverlapping () |
| |
|
void | SetAABBOverlapping (bool b) |
| |
| void | SetAllowedCollisionLayers (List< string > layers) |
| | Pass in a list of layers with which this collider should be able to collide with.
|
| |
|
List< string > | GetAllowedCollisionLayers () |
| |
|
void | SolveCollisions (List< Collider > others) |
| |
|
void | SolveCollision (Collider other, Vector2 velocity) |
| |
|
void | SolveCollision (PolygonCollider other, Vector2 velocity) |
| |
|
void | SolveCollision (CircleCollider other, Vector2 velocity) |
| |
|
bool | PointInsideCollider (PointF point) |
| |
|
void | CalculateAABB () |
| | Each subclass will have its own method of calculating its AABB.
|
| |
| override void | SetEnabled (bool state) |
| |
|
int | CompareTo (Behaviour? other) |
| |
|
delegate void | EnabledChanged (bool state) |
| |
|
bool | HasTag (string tag) |
| |
|
| override void | OnAwake () |
| |
| override void | OnStart () |
| |
| override void | OnDestroy () |
| |
| override void | OnUpdate (GameTime gameTime) |
| |
|
void | SetAABB (AABB aabb) |
| |
|
void | FireCorrectEvent (Vector2 collisionVector, Collider other) |
| |
|
void | FireTriggerEnter (Vector2 collisionVector, Collider other) |
| |
|
void | FireCollisionEnter (Vector2 collisionVector, Collider other) |
| |
|
virtual void | OnFixedUpdate (GameTime gameTime) |
| |
|
ICollisionSystem | collisionSystem |
| |
|
readonly uint | InstanceID |
| |
|
readonly HashSet< string > | Tags = new() |
| |
|
bool | Debug = false [get, set] |
| |
|
float | VelocityDampingMultiplier = 1 [get, set] |
| |
|
Vector2 | Velocity [get, set] |
| |
|
Game | Game [get, set] |
| |
|
Node? | Node [get, set] |
| |
|
bool | Enabled = true [get] |
| |
|
string | Name = "Generic Object" [get, protected set] |
| |
|
TriggerEvent? | OnTriggerEnter |
| |
|
CollisionEvent? | OnCollisionEnter |
| |
|
EnabledChanged? | EnabledChangedEvent |
| |