#include <cTree.h>
Classes | |
struct | rTree |
Public Member Functions | |
cTree (float *pos, float *rot, int seed, int type, int age) | |
virtual void | drawSolid () |
Render solid non-translucent parts of the object. | |
virtual float | constrainParticle (float *worldpos, float radius=0.0f, float *localpos=NULL, cObject *enactor=NULL) |
Friends | |
class | cPlanetmap |
Generates and caches proceduraly generated 3d tree models.
float cTree::constrainParticle | ( | float * | worldpos, | |
float | radius = 0.0f , |
|||
float * | localpos = NULL , |
|||
cObject * | enactor = NULL | |||
) | [virtual] |
Constrain the given world position particle (with radius) to the object boundary hull ie. place the worldpos to the nearest boundary hull position if the worldpos is inside the object's hull. localpos delivers in case of impact the local position relative to the object of the corrected worldpos. input location vector in world coordinates. radius of the checked particle in world dimensions. output adjusted location vector.
Reimplemented from cObject.