Connects WorldCells together.
More...
#include <framework/transition.h>
◆ Transition()
◆ ~Transition()
tram::Transition::~Transition |
( |
| ) |
|
|
delete |
◆ AddPoint()
void tram::Transition::AddPoint |
( |
vec3 |
point | ) |
|
◆ Find()
Finds a transition with the given name.
Pointer to the transition or a nullptr if wasn't found.
◆ GeneratePlanes()
void tram::Transition::GeneratePlanes |
( |
bool |
disp = false | ) |
|
Finalizes the transition after adding points to it.
- Parameters
-
disp | Draws the transition planes for a single frame if set to true. |
◆ GetCell()
◆ IsInside()
bool tram::Transition::IsInside |
( |
vec3 |
point | ) |
|
Checks whether a point is inside the transition volume.
◆ Make()
Creates a new transition.
- Parameters
-
name | Name of the transition. Can be set to "none" if the transition doesn't need a name. |
cell_into | Pointer to the WorldCell into which the transition will be leading into. |
◆ WorldCell
◆ cell_into
◆ name
◆ planes
std::vector<vec4> tram::Transition::planes |
|
protected |
◆ points
std::vector<vec3> tram::Transition::points |
|
protected |
The documentation for this class was generated from the following files:
- C:/Users/Poga/Desktop/painis/tram-sdk/src/framework/transition.h
- C:/Users/Poga/Desktop/painis/tram-sdk/src/framework/transition.cpp