19#ifndef HEADER_DRIVE_NODE_2D_HPP
20#define HEADER_DRIVE_NODE_2D_HPP
22#include "tracks/drive_node.hpp"
23#include "utils/cpp2011.hpp"
47 const Vec3 &normal,
unsigned int node_index,
bool invisible,
48 bool ai_ignore,
bool ignored);
Definition: drive_node_2d.hpp:31
core::vector2df m_lower_center_2d
The center point of the lower two points (e.g.
Definition: drive_node_2d.hpp:36
core::line2df m_line
Line between lower and upper center, saves computation in getDistance() later.
Definition: drive_node_2d.hpp:43
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_2d.cpp:46
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_2d.cpp:66
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