- Joined
- Jan 11, 2009
- Messages
- 3,414
I know there should be threads concerning this already, and i apologize for this, but i have been searching a while whithout results.
I'm doing a projectile system for my map, and i want a trigger to check for obstractles in the projectiles path.
To be simple:
Bullet hits wall (unwalkable) => bullet goes boom.
One way i thought of was to create a point every - lets say, 50 length units from the projectiles origin to its destination, and thereafter checking the pathing on that point using IsTerrainPathable. But this would clearly be very uneficcient, and also unprecise since the speed of the projectile might be pretty fast.
Is there any good way of solving this?
I'm doing a projectile system for my map, and i want a trigger to check for obstractles in the projectiles path.
To be simple:
Bullet hits wall (unwalkable) => bullet goes boom.
One way i thought of was to create a point every - lets say, 50 length units from the projectiles origin to its destination, and thereafter checking the pathing on that point using IsTerrainPathable. But this would clearly be very uneficcient, and also unprecise since the speed of the projectile might be pretty fast.
Is there any good way of solving this?