Game Development Community

Ray intersection with foliages

by Jari · in Torque Game Engine · 07/16/2006 (12:19 am) · 1 replies

Hi,
what kind of engine changes do you think it would require to allow raycast to intersect with one of the foliages produced by the fxFoliageReplicator? I'm thinking that all of the foliages should be iterated through and some kind of intersection check should be made but the problem is that I don't know how to determine if the ray intersects with the foliage.
So any help/tips are appreciated!

#1
07/20/2006 (11:12 am)
Well... why do you want to collide with foiliage? It can't be for gameplay purposes, because the foiliage itself is nothing but clientside billboards. If you wanted to add some sort of effect, I'd look up the code that had blocking volumes for the fxShapeReplicator, and maybe look into how that works.