Class: Collider

Components.Collider

Collider component class

new Components.Collider (owner, collisionResolver, potential_entities)

Name Type Description
owner Core.Entity the entity the component's being applied to.
collisionResolver object collider object (e.g: AABB, CircleCollider)
potential_entities Container container of potential entities to check against (usually dictionary)

Members

Components.Collider.component_name String static

the component name

Methods

getNormal (otherCollider)Utils.Vector2d

gets normal with other collider
Name Type Description
otherCollider Components.Collider other collider
Returns:
Type Description
Utils.Vector2d the normal of the collision

update ()

updates the collider (position, detection, etc..)