Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/bullet/BulletDynamics/Vehicle/btVehicleRaycaster.h @ 11579

Last change on this file since 11579 was 8393, checked in by rgrieder, 14 years ago

Updated Bullet from v2.77 to v2.78.
(I'm not going to make a branch for that since the update from 2.74 to 2.77 hasn't been tested that much either).

You will HAVE to do a complete RECOMPILE! I tested with MSVC and MinGW and they both threw linker errors at me.

  • Property svn:eol-style set to native
File size: 1.0 KB
RevLine 
[1963]1/*
[8393]2 * Copyright (c) 2005 Erwin Coumans http://bulletphysics.org
[1963]3 *
4 * Permission to use, copy, modify, distribute and sell this software
5 * and its documentation for any purpose is hereby granted without fee,
6 * provided that the above copyright notice appear in all copies.
7 * Erwin Coumans makes no representations about the suitability
8 * of this software for any purpose. 
9 * It is provided "as is" without express or implied warranty.
10*/
[8393]11#ifndef BT_VEHICLE_RAYCASTER_H
12#define BT_VEHICLE_RAYCASTER_H
[1963]13
14#include "LinearMath/btVector3.h"
15
16/// btVehicleRaycaster is provides interface for between vehicle simulation and raycasting
17struct btVehicleRaycaster
18{
19virtual ~btVehicleRaycaster()
20{
21}
22        struct btVehicleRaycasterResult
23        {
24                btVehicleRaycasterResult() :m_distFraction(btScalar(-1.)){};
25                btVector3       m_hitPointInWorld;
26                btVector3       m_hitNormalInWorld;
27                btScalar        m_distFraction;
28        };
29
30        virtual void* castRay(const btVector3& from,const btVector3& to, btVehicleRaycasterResult& result) = 0;
31
32};
33
[8393]34#endif //BT_VEHICLE_RAYCASTER_H
[1963]35
Note: See TracBrowser for help on using the repository browser.