|
Exactly like STATE_polygon_get_plane() only that it also deals with polygons which belong to dynamic objects
Parameters:
polygon_handle:
The polygon that we want to get its plane equation (or its normal)
object_handle:
The object which the polygon belongs to. NULL if this polygon belong to the static part of the world.
[out] plane:
Through this parameter the function returns the polygon plane.
Remarks:
If object_handle==NULL then this function will act exactly as STATE_polygon_get_plane()
The difference between this function and STATE_polygon_get_plane() is that if the polygon belongs to
a dynamic object (object_handle!=NULL) then STATE_polygon_get_plane_extended() will return the polygon
plane in world space where as STATE_polygon_get_plane() will return the plane in object space.
See also:
STATE_polygon_get_plane();
Example:
DWORD polygon, object;
double 3d_point[3]
STATE_engine_2D_point_to_3D(x, y, 3d_point, &object, &polygon);
double plane[4];
if(polygon!=NULL)
STATE_polygon_get_plane_extended(polygon, object, plane);
|