Bullet Collision Detection & Physics Library: btVehicleRaycaster.h Source File

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

btVehicleRaycaster.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2005 Erwin Coumans http://bulletphysics.org
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*/
11#ifndef BT_VEHICLE_RAYCASTER_H
12#define BT_VEHICLE_RAYCASTER_H
13
14#include "LinearMath/btVector3.h"
15
17 struct btVehicleRaycaster
18{
19 virtual ~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#endif //BT_VEHICLE_RAYCASTER_H
btScalar
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
Definition: btScalar.h:314
btVector3.h
btVector3
btVector3 can be used to represent 3D points and vectors.
Definition: btVector3.h:82
btVehicleRaycaster::btVehicleRaycasterResult
Definition: btVehicleRaycaster.h:23
btVehicleRaycaster::btVehicleRaycasterResult::m_distFraction
btScalar m_distFraction
Definition: btVehicleRaycaster.h:27
btVehicleRaycaster::btVehicleRaycasterResult::m_hitNormalInWorld
btVector3 m_hitNormalInWorld
Definition: btVehicleRaycaster.h:26
btVehicleRaycaster::btVehicleRaycasterResult::m_hitPointInWorld
btVector3 m_hitPointInWorld
Definition: btVehicleRaycaster.h:25
btVehicleRaycaster::btVehicleRaycasterResult::btVehicleRaycasterResult
btVehicleRaycasterResult()
Definition: btVehicleRaycaster.h:24
btVehicleRaycaster
btVehicleRaycaster is provides interface for between vehicle simulation and raycasting
Definition: btVehicleRaycaster.h:18
btVehicleRaycaster::~btVehicleRaycaster
virtual ~btVehicleRaycaster()
Definition: btVehicleRaycaster.h:19
btVehicleRaycaster::castRay
virtual void * castRay(const btVector3 &from, const btVector3 &to, btVehicleRaycasterResult &result)=0