Line Of Sight
Posted: Sun Feb 20, 2005 10:56 am
I've written a Line-Of-Sight system that uses a CollisionFree test inside a while loop.
It works well.
The problem is I want some actors to be see-through and others solid. I don't want to disable collision state on them either!
My current system is blocked by ANY actor.
I want to use an actor variable like "isSolid".
But...
If I change the x and y of a collision test actor inside a while loop will collision detection for that actor work for a range of positions? Or will it only detect collsion on a Draw Event.
Any feedback appreciated!
It works well.
The problem is I want some actors to be see-through and others solid. I don't want to disable collision state on them either!
My current system is blocked by ANY actor.
I want to use an actor variable like "isSolid".
But...
If I change the x and y of a collision test actor inside a while loop will collision detection for that actor work for a range of positions? Or will it only detect collsion on a Draw Event.
Any feedback appreciated!