|
glVertex
5.5.2
|
no physical scene graph object (empty physics implementation) More...
#include <glvertex_object.h>

Public Member Functions | |
| virtual void | applyForce (vec3 force, vec3 rel_pos=vec3(0, 0, 0)) |
| apply force to point relative to center of mass | |
| virtual void | applyImpulse (vec3 impulse) |
| apply linear impulse to center of mass | |
| virtual void | applyTorque (vec3 torque) |
| apply angular impulse to center of mass | |
| lgl_Node * | getSceneGraph () |
| get scene graph | |
| void | setSceneGraph (lgl_Node *root) |
| set scene graph | |
| void * * | getPhysicalData () |
| get physical data | |
| void | setPhysicalData (void * *data) |
| set physical data | |
| virtual void * * | createPhysicalData () |
| create physical data More... | |
| double | getPhysicalMass () |
| get physical mass | |
| void | setPhysicalMass (double mass) |
| set physical mass a mass of zero creates a static (immovable) object | |
| double | getPhysicalRestitution () |
| get physical restitution | |
| void | setPhysicalRestitution (double restitution) |
| set physical restitution | |
| void | scale (const vec3 &factor) |
| scale object by non-uniform factor | |
| void | setVelocity (vec3 velocity) |
| set object velocity | |
| vec3 | getVelocity () |
| get object velocity | |
| vec4 | getColor () |
| get object color | |
| void | setColor (const vec4 &c) |
| set object color | |
| bool | hasTransparency () |
| get object transparency flag | |
| void | hasTransparency (bool flag) |
| set object transparency flag | |
| bool | hasPartialTransparency () |
| get partial object transparency flag | |
| void | hasPartialTransparency (bool flag) |
| set partial object transparency flag | |
| mat4 | getTransformation () |
| get object transformation | |
| vec3 | getPosition () |
| get object position | |
| mat3 | getRotation () |
| get object rotation | |
| vec3 | getScale () |
| get object scale | |
| double | getMaxScale () |
| get maximum object scale | |
| bool | hasUniformScale () |
| object has uniform scale? | |
| bool | hidden () |
| is the object hidden? | |
| bool | shown () |
| is the object shown? | |
| void | hide (bool yes=true) |
| hide object | |
| void | show (bool yes=true) |
| show object | |
| void | renderTransformedObject () |
| render transformed object | |
| virtual double | getDistanceToObject (const vec3 &v) |
| compute minimum distance to transformed object | |
Static Protected Member Functions | |
| static double | getDistanceToSphere (const vec3 &p, const vec3 &v, double radius) |
| compute minimum distance to sphere | |
| static double | getDistanceToBox (const vec3 &p, const vec3 &v, const vec3 &ext) |
| compute minimum distance to box | |
| static double | getDistanceToBox (const vec3 &p, const mat3 &rotation, const vec3 &v, const vec3 &ext) |
| compute minimum distance to rotated box | |
| static double | getDistanceToBox (const vec3 &p, const mat3 &rotation, const vec3 &offset, const vec3 &v, const vec3 &ext) |
| compute minimum distance to rotated and displaced box | |
no physical scene graph object (empty physics implementation)
|
inlinevirtualinherited |
create physical data
1.8.17