Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
Blam::World Namespace Reference

Functions

BLAM float ConvertFloatToWorldUnits (float value)
 Converts a given float to the equivalent in world units. More...
 
BLAM BlamDirection GetOppositeDirection (BlamDirection direction)
 Gets the direction opposite to a given direction. More...
 

Function Documentation

◆ ConvertFloatToWorldUnits()

float Blam::World::ConvertFloatToWorldUnits ( float  value)

Converts a given float to the equivalent in world units.

World units are always on a 1:100 scale with coordinates in 3D space. For instance: An X value 3461.12 would be converted to 34.6112 world units.

◆ GetOppositeDirection()

BlamDirection Blam::World::GetOppositeDirection ( BlamDirection  direction)

Gets the direction opposite to a given direction.

This function will determine the opposite of any given direction. For example, if direction is forward, then this will return Backwards, if direction is left, it will return Right, etc.

Parameters
direction- The direction to determine the opposite of.
Returns
The opposite direction.