Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::CollisionGrid Class Reference

#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< CollisionBoxgetCollisionBoxes () const
 

Public Attributes

const float minScale = 0.5f
 
const float maxScale = 2.0f
 

Detailed Description

CollisionGrid - Short description

Member Function Documentation

◆ placeFeature()

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.

Parameters
featureA CollisionFeature
Returns
The maximum scale factor (between 0.5 and 2.0) where this item can be placed.

The documentation for this class was generated from the following files: