glVertex  5.5.2
Public Member Functions | List of all members
lgl_NoPhysicalObjects Class Reference

container class for multiple non-physical objects (empty physics implementation) More...

#include <glvertex_object.h>

Inheritance diagram for lgl_NoPhysicalObjects:
Inheritance graph
[legend]

Public Member Functions

virtual iterator addObject (lgl_Object *obj)
 add physical object
 
iterator findNonStaticObject (vec3 center, double radius)
 find nearest non-static graphical object within search radius
 
virtual void removeObject (iterator it)
 remove physical object
 
virtual void deactivateObject (iterator it, bool yes=true)
 deactivate physical object
 
iterator begin ()
 begin iterator
 
iterator end ()
 end iterator
 
void setGroundPlane (vec3 o, vec3 n, double r=1.0)
 set ground plane More...
 
void setGravity (double g)
 set gravity
 
iterator findObject (lgl_Object *obj)
 find graphical object
 
iterator findObject (vec3 center, double radius)
 find nearest graphical object within search radius
 
void selectObject (iterator it)
 select graphical object
 
iterator getSelectedObject ()
 get selected graphical object
 
void renderObjects (double dt=0)
 render and update all objects
 
void renderObjects (vec3 eye, double dt=0)
 render and update all objects
 
virtual void drawObjects ()
 draw all objects without updating
 
virtual void drawObjects (vec3 eye)
 draw all objects with depth sorting
 
virtual void preupdateObjects (double dt)
 pre-update all objects
 

Detailed Description

container class for multiple non-physical objects (empty physics implementation)

Member Function Documentation

◆ setGroundPlane()

void lgl_PhysicalObjects< void * >::setGroundPlane ( vec3  o,
vec3  n,
double  r = 1.0 
)
inlineinherited

set ground plane

  • parameters o and n are a point on the plane and the plane normal
  • a normal with zero norm is interpreted as missing ground plane

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