Package ecs
Class CollisionHandlers
java.lang.Object
ecs.CollisionHandlers
- Since:
- 07.12.2021
- Author:
- Juyas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CollisionHandler
unpassablePolygonCollider
(PolygonCollider collider) ACollisionHandler
for aPolygonCollider
that should not pass through other colliders.
-
Constructor Details
-
CollisionHandlers
public CollisionHandlers()
-
-
Method Details
-
unpassablePolygonCollider
ACollisionHandler
for aPolygonCollider
that should not pass through other colliders. Can be thought of as making the collider a solid object.- Parameters:
collider
- the collider to attach the handler to- Returns:
- the
CollisionHandler
to be attached to the gameObject holding the collider
-