Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

absobj.h File Reference


Detailed Description

Header file for AbsObj class.

#include "obj.h"
#include "tritype.h"
#include <vector>

Include dependency graph for absobj.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  std

Classes

class  AbsObj
 What will be hopefully the building block of the game. More...

Functions

int collideResponse (float time, AbsObj &bill, AbsObj &ben, Vec4 &pt, Vec4 &n, Vec4 &intr, float sticky=0.8)
 Collision response.


Function Documentation

int collideResponse float  time,
AbsObj bill,
AbsObj ben,
Vec4 pt,
Vec4 n,
Vec4 intr,
float  sticky
 

Collision response.

Important rigid-body physics. This does lots of important collision response for all objects.

Todo:
Write this in more depth.
Parameters:
time The length of time of the collision.
bill One of the colliding objects.
ben The other object.
pt Point of collision (in world space).
n Normal of collision.
intr Intersection of the objects.
sticky The elasticity coefficient. Between 0 and 1.
Returns:
0. Return value not used atm.

Todo:
Fix intersection code. While the code itself is correct, the way in which we find the intersection distance is not correct.
See also:
AbsObj::collide.

Here is the call graph for this function:


Generated on Mon Jan 3 15:14:19 2005 for Graviton by  doxygen 1.3.9.1