ManiaMap.Unity
Procedural generation of metroidvania style maps for Unity.
DoorThreshold Class Reference

An interpolatable area, useful for locating characters moving between door thresholds. More...

Inheritance diagram for DoorThreshold:

Public Member Functions

Bounds GetAABB ()
 Returns the axis aligned bounding box for the threshold area. More...
 
Vector3 InterpolatePosition (Vector3 parameters)
 Returns the global position corresponding to the specified interpolation parameters. The interpolation parameters are clamped to [0, 1]. More...
 
Vector3 ParameterizePosition (Vector3 position)
 Returns the interpolation parameters corresponding to the specified global position. The interpolation parameters are clamped to [0, 1]. More...
 

Properties

Vector3 Size [getset]
 The size of the threshold area. More...
 

Private Member Functions

void OnDrawGizmos ()
 
void OnValidate ()
 

Private Attributes

Vector3 _size = Vector3.one
 

Detailed Description

An interpolatable area, useful for locating characters moving between door thresholds.

Definition at line 8 of file DoorThreshold.cs.

Member Function Documentation

◆ GetAABB()

Bounds GetAABB ( )

Returns the axis aligned bounding box for the threshold area.

Definition at line 36 of file DoorThreshold.cs.

◆ InterpolatePosition()

Vector3 InterpolatePosition ( Vector3  parameters)

Returns the global position corresponding to the specified interpolation parameters. The interpolation parameters are clamped to [0, 1].

Parameters
parametersThe interpolation parameters.

Definition at line 93 of file DoorThreshold.cs.

◆ OnDrawGizmos()

void OnDrawGizmos ( )
private

Definition at line 21 of file DoorThreshold.cs.

◆ OnValidate()

void OnValidate ( )
private

Definition at line 16 of file DoorThreshold.cs.

◆ ParameterizePosition()

Vector3 ParameterizePosition ( Vector3  position)

Returns the interpolation parameters corresponding to the specified global position. The interpolation parameters are clamped to [0, 1].

Parameters
positionThe global position.

Definition at line 76 of file DoorThreshold.cs.

Member Data Documentation

◆ _size

Vector3 _size = Vector3.one
private

Definition at line 10 of file DoorThreshold.cs.

Property Documentation

◆ Size

Vector3 Size
getset

The size of the threshold area.

Definition at line 14 of file DoorThreshold.cs.


The documentation for this class was generated from the following file: