Maclodawn / Earthbending-Project

2 stars 0 forks source link

[Feature][Fire] To do #6

Open Maclodawn opened 8 years ago

Maclodawn commented 8 years ago

Need to figure out how to do it.

belkacemlahouel commented 8 years ago

I'm on it, see feature-fire branch. We need to specify how does it work though, in the game play, because I'm not sure yet. Do we need flame-balls? That's the stuff I'm talking about.

Flames are made using a particle system + capsule collider. Another solution would be to have a small collider on each particle, but I think it's too heavy and not real (we need to be at the center of the fire to see effects).

For the moment, we need to press 'P' for 2 seconds, then when we release the key flames move using the player forward direction. Flames keep moving until they reach the first collider different from terrain, then multiply as if they were actually burning the collider. After a given time, they suicide and destroy the collider...

TODO : seems that my flames, since not having any rigidbody, do not affect physics computation when detecting collisions (triggers). I'll find a way to fix that.