Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1975 in orxonox.OLD for orxonox/branches/chris/core/collision.h


Ignore:
Timestamp:
Jun 18, 2004, 7:56:18 AM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: Implemented traceing (line-sphere collision)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/core/collision.h

    r1966 r1975  
    33#define COLLISION_H
    44
    5 #include "stdincl.h"
     5#include "vector.h"
     6#include "coordinates.h"
     7#include <stdlib.h>
     8#include <stdio.h>
     9#include <strings.h>
    610
    711typedef struct CC_Tree
     
    2933  int store (char* filename);
    3034 
     35  friend bool cctree_trace( const Placement* p, CC_Tree* t, unsigned long* hitflags, const Line* trace, Vector* impactpoint);
    3136  friend bool cctree_iterate(const Placement* pa, CC_Tree* ta, unsigned long* ahitflags, const Placement* pb, CC_Tree* tb, unsigned long* bhitflags);
    32   friend bool check_trace (const Placement* pa, const CollisionCluster* a, unsigned long* ahitflags, const Line& trace, Vector* impactpoint);
     37  friend bool check_trace (const Placement* pa, const CollisionCluster* a, unsigned long* ahitflags, const Line* trace, Vector* impactpoint);
    3338  friend bool check_collision (const Placement* pa, const CollisionCluster* a, unsigned long* ahitflags, const Placement* pb, const CollisionCluster* b, unsigned long* bhitflags);
    3439};
    3540
    3641bool sphere_sphere_collision( Vector m1, float r1, Vector m2, float r2);
    37 bool trace_sphere_collision( Vector m, float r, Line& l, Vector* impactpoint);
     42bool trace_sphere_collision( Vector m, float r, const Line* l, Vector* impactpoint);
    3843
    3944void setflag( unsigned long* flags, unsigned long ID);
Note: See TracChangeset for help on using the changeset viewer.