Skip to content

Adding an Extra Collider #2731

Answered by eonarheim
cemalgnlts asked this question in Q&A
Aug 4, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@cemalgnlts Good question, this is definitely the approach I would suggest for your bomb using another actor/entity with a circle collider. You could add an additional trigger/actor to the top level scene, or as a child on the bomb actor.

When the collision type is ex.CollisionType.Passive the postcollision event doesn't fire because no resolution was performed.

You can use the collisionstart and collisionend events, here is an example of using this kind of approach to enable 1-way platforms.
#2577 (reply in thread)

There is more documentation about the specific events here https://excaliburjs.com/docs/collision-events/#collision-start-collisionstart

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eonarheim
Comment options

Answer selected by cemalgnlts
@cemalgnlts
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants