SuperTuxKart
Loading...
Searching...
No Matches
btKartRaycast.hpp
1/*
2 * Copyright (C) 2005-2015 Erwin Coumans http://continuousphysics.com/Bullet/
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 BTKARTRAYCAST_HPP
12#define BTKARTRAYCAST_HPP
13
14#include "BulletDynamics/Dynamics/btRigidBody.h"
15#include "BulletDynamics/ConstraintSolver/btTypedConstraint.h"
16#include "BulletDynamics/Vehicle/btVehicleRaycaster.h"
17class btDynamicsWorld;
18#include "LinearMath/btAlignedObjectArray.h"
19#include "BulletDynamics/Vehicle/btWheelInfo.h"
20#include "BulletDynamics/Dynamics/btActionInterface.h"
21
22
23class btKartRaycaster : public btVehicleRaycaster
24{
25private:
26 btDynamicsWorld* m_dynamicsWorld;
30public:
31 btKartRaycaster(btDynamicsWorld* world, bool smooth_normals=false)
32 :m_dynamicsWorld(world), m_smooth_normals(smooth_normals)
33 {
34 }
35
36 virtual void* castRay(const btVector3& from,const btVector3& to,
37 btVehicleRaycasterResult& result);
38
39};
40
41
42#endif //RAYCASTVEHICLE_H
43
Definition: btKartRaycast.hpp:24
bool m_smooth_normals
True if the normals should be smoothed.
Definition: btKartRaycast.hpp:29
virtual void * castRay(const btVector3 &from, const btVector3 &to, btVehicleRaycasterResult &result)
Definition: btKartRaycast.cpp:22