Quantcast
Channel: Questions in topic: "tree"
Viewing all articles
Browse latest Browse all 513

Is it fine to use a separate quad for collision on a sprite?

$
0
0
I'm using tree sprites for terrain scenery and I would like to be able to collide with them. However, I want to be able to walk through the leaves, and collide only with the trunk. My workaround is to just have an invisible quad in the same spot as the trunk for collision. If my scene were to have hundreds/thousands of trees, would this negatively influence performance to have an extra quad per tree? Thanks!

Viewing all articles
Browse latest Browse all 513

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>