19#ifndef HEADER_DRIVE_NODE_3D_HPP
20#define HEADER_DRIVE_NODE_3D_HPP
22#include "tracks/bounding_box_3d.hpp"
23#include "tracks/drive_node.hpp"
24#include "utils/cpp2011.hpp"
42 const Vec3 &normal,
unsigned int node_index,
bool invisible,
43 bool ai_ignore,
bool ignored);
46 bool ignore_vertical =
false) const OVERRIDE
48 return BoundingBox3D::pointInside(p);
55 virtual bool is3DQuad() const OVERRIDE {
return true; }
Definition: bounding_box_3d.hpp:28
Definition: drive_node_3d.hpp:33
virtual float getDistance2FromPoint(const Vec3 &xyz) const OVERRIDE
Returns the square of the distance between the given point and any point on the 'centre' line,...
Definition: drive_node_3d.cpp:63
core::line3df m_line
Line between lower and upper center, saves computation in getDistance() later.
Definition: drive_node_3d.hpp:38
virtual bool pointInside(const Vec3 &p, bool ignore_vertical=false) const OVERRIDE
Returns true if a point is inside this quad.
Definition: drive_node_3d.hpp:45
virtual void getDistances(const Vec3 &xyz, Vec3 *result) const OVERRIDE
Returns the distance a point has from this node in forward and sidewards direction,...
Definition: drive_node_3d.cpp:42
virtual bool is3DQuad() const OVERRIDE
Returns true if this quad is 3D, which additional 3D testing is used in pointInside.
Definition: drive_node_3d.hpp:55
This class stores a node of the drive graph, i.e.
Definition: drive_node.hpp:32
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35