Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Sothoth on July 26, 2013, 05:08:50 PM

Title: Collisions between multiple actors
Post by: Sothoth on July 26, 2013, 05:08:50 PM
Hi! I'm trying to understand the rationale behind the points in , about the BLOCKED_REGION and the WAYPOINTS.

If I'm not wrong, the BLOCKED_REGION defines a 4-point region around the actor, and the WAYPOINTS defines a set of waypoints around the blocked region, so another actor can go near the given actor without entering into its blocked region. All the numbers are relative to the given actor's position.

The above link defines the following blocked region and waypoints:

Code: WME Script
  2.   {
  3.     POINT {-60,-48}
  4.     POINT {46,-48}
  5.     POINT {46,53}
  6.     POINT {-60,53}
  7.   }
  9.   {
  10.     POINT {-65,-53}
  11.     POINT {-56,39}
  12.     POINT {51,-58}
  13.     POINT {60,58}
  14.   }

However, the waypoint (-56,39) falls into the blocked region, so any other actor will be unable to go to that waypoint. Is it right?

By the way, another question: the blocked region doesn't symetrically surrounds the actor, according to the numbers. It seems to be further away to the left and to the top. Is there a reason to do it so?

Thank you very much in advance!