Elaztek Developer Hub
Blamite Game Engine - Strings  00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamStrings::Utils::World Namespace Reference

Functions

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

Function Documentation

◆ ConvertFloatToWorldUnits()

float BlamStrings::Utils::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 BlamStrings::Utils::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.