Ran Yakir (rany++at++bvr.co.il)
Mon, 29 Jan 1996 08:12:20 +0000
Are you using Performer ?
If you want to limit yourself to a house and a walking person, then this could
be regarded as a 2D problem. You can test the position of the person against a
2D polygon that represents the walls layout.
If you need something more general - use the pfNodeIsectSegs function of
Performer. It intersect a group of line segments against a node (your walls).
You can construct a line segment that begins at the position of the person, and
goes to the direction he/she is moving to. When teh person is at the door - a
sort segment will return no intersection.
Ran
--
__ | Ran Yakir
/_) _ __ \ / _ / o __ | Graphics App. Chief Engineer
/ )_ (_(_) ) \/ (_(_/<_(_)( | BVR Technologies Ltd.
_/ |
-------------------------------------+--------------------------------
Phone : | E-mail : rany++at++bvr.co.il
Work : 972-3-5715671 |
Res. : 972-9-989974 |
Fax : 972-3-5715668 |
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:18 PDT