![]() |
Maria GDK 5.0.0.907
Documentation of native code in develop branch
|
#include <MCollisionGrid.h>
Public Member Functions | |
| float | placeFeature (const CollisionFeature &feature) |
| Calculate the maximum scale at which this CollisionFeature does not collide with any existing CollisionBoxes in the grid index. | |
| void | insertFeature (CollisionFeature &feature, const float minPlacementScale) |
| std::vector< CollisionBox > | getCollisionBoxes () const |
Public Attributes | |
| const float | minScale = 0.5f |
| const float | maxScale = 2.0f |
CollisionGrid - Short description
| float Maria::CollisionGrid::placeFeature | ( | const CollisionFeature & | feature | ) |
Calculate the maximum scale at which this CollisionFeature does not collide with any existing CollisionBoxes in the grid index.
| feature | A CollisionFeature |