GoGo-Boy
You can change this now in User CP
- Reaction score
- 40
Hi there,
I'm currently thinking about adding a collision detection system to my map but I guess something like this needs way too much performance to be viable along other resource draining systems.
Yet I'd like how you would probably do this.
In my case I'd like to have units being bounced of terrain and doodads however not unit-unit.
For the terrain part I would be going with a circular terrain height check around the unit that's moved and calculate the bounce angles.
But for doodads, what to do? Add an x/y variable for each doodad and check whether the unit is in range when moving? I guess that consumes too much performance.
I'm currently thinking about adding a collision detection system to my map but I guess something like this needs way too much performance to be viable along other resource draining systems.
Yet I'd like how you would probably do this.
In my case I'd like to have units being bounced of terrain and doodads however not unit-unit.
For the terrain part I would be going with a circular terrain height check around the unit that's moved and calculate the bounce angles.
But for doodads, what to do? Add an x/y variable for each doodad and check whether the unit is in range when moving? I guess that consumes too much performance.