Currently ig.game.colliionMap.trace() only takes into account collision map tiles to see if a trace succeeds. The problem is I need it to take into account entities when called.

/><br />
<br />
For example when an enemy looks towards a player they can see right through objects (crates, barrels, and other neutral objects). Kind of ruins the element of surprise at the moment. <br />
<br />
I'm wondering if ImpactJS has some buried method I can call to emulate casting a ray on entities. For example I see that the core file entity.js does some collision detection for overlapped entities. Is there a way for me to look for overlap in a specified area through a non entity method?<br />
<br />
I see that ImpactJS Box2D has raycasting abilities. But I don't want to include the entire Box2D library just for one method.			</div>
		</div>
	
	
<div class= Page 1 of 1
« first « previous next › last »