Collision detection outline. More...
Derived from: | None |
Derived by: | None |
Group: | Collision (Display) |
#include <ClanLib/display.h>
Class Members:
Construction: | |
Construct a collision outline. |
| |
Resource owning this outline, if any. | |
Returns the contour used as an object bounding box. (an rotated rectangle) | |
Returns the radius of the outline. | |
Returns true if completely-inside test is used. | |
Returns the contours in the outline. | |
Returns the position of the outline. | |
Returns the scaling factor. | |
Returns the rotation angle. | |
Returns the width of the image this outline was created from. | |
Returns the height of the image this outline was created from. | |
Get the translation origin and hotspot of the outline. | |
Get the rotation hotspot of the outline. | |
Return the info about the collisions. (collision points, normals, pointers to contours, and indexes to lines that intersected) | |
Fetch the state of the collision testing variables. |
| |
Load the outline from file replacing the current data. | |
Copy. This function is de-appreciated and is removed in ClanLib 2.4. Use clone() instead. | |
Makes a copy of the current collision outline. | |
Optimize the outline by removing redundant points. | |
Draw outline on graphic context. | |
Draw the subcircles surrounding the linesegments on graphic context. | |
Draw the disc enclosing the entire outline. | |
Set the translation hotspot of the outline. | |
Set the rotation hotspot of the outline. | |
Set the position of the outline. | |
Set the scale of the outline. | |
Set the angle (in degrees) of the outline. | |
Rotate the outline by angle (in degrees). | |
Set to true if completely-inside test should be done. | |
Enable collision info gathering. | |
This will set the collision info of the outline. | |
This will empty the collision-info vector. | |
(Re)calculate the radius of the outline. | |
(Re)calculate the subcircle segmentation of the outline. | |
(Re)calculate the smallest circles enclosing every contour in the outline. | |
(Re)calculate the convex hull for every contour in the outline | |
Write the outline to a file. | |
Returns true if outlines overlap. | |
Returns true if a point is inside the outline. | |
Will calculate the penetration_depth and penetration_normal for all colliding contours. |
Detailed description:
A collision outline is used in collision detection