Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Jon123

Is it possible for enitities to have more complex collision boxes, i.e. not just a simple rectangle?

Say I had entities of similar shapes to the blocks in Tetris, how would I surround them with a fitting collision box?

1 decade ago by jerev

With the core physics, there's no easy way to do this.
You could implement a more advanced physics system, although, for tetris that would be "overkill".

You could write some shape code, split up entities, handle the collision yourself.

There actually is a Tetris example game here, if you're interested: https://github.com/ntaso/tetris-impact

1 decade ago by Jon123

Tetris was only an example but thanks, I'll take a look. Yeah I was thinking the easiest way to do this would be to have multiple entities of different sizes side-by-side.

I am thinking of building a shooter game, where the ship has to fly through a tunnel and the sides expand/shrink to imitate corners etc. I was going to have jagged blocks of tiles that would appear, so I could create this with multiple entities, if there is no other way.

What do you mean by shape code?
Page 1 of 1
« first « previous next › last »