Table of Contents

Class FloatingOriginManager

Namespace
Coherence.Toolkit
Assembly
Coherence.Toolkit.dll
public class FloatingOriginManager
Inheritance
FloatingOriginManager

Fields

OnAfterFloatingOriginShifted

public Action<FloatingOriginShiftArgs> OnAfterFloatingOriginShifted

Field Value

Action<FloatingOriginShiftArgs>

OnFloatingOriginShifted

Invoked at the end of the floating point origin shifting operation started via SetFloatingOrigin(Vector3d) or TranslateFloatingOrigin(Vector3d), after all objects have been shifted..

public Action<FloatingOriginShiftArgs> OnFloatingOriginShifted

Field Value

Action<FloatingOriginShiftArgs>

WorldPositionMaxRange

Maximum abs position of an entity/liveQuery/floatingOrigin

public const float WorldPositionMaxRange = 1.7014117E+38

Field Value

float

Methods

GetFloatingOrigin()

Returns the current absolute position of the floating point origin.

public Vector3d GetFloatingOrigin()

Returns

Vector3d

SetFloatingOrigin(Vector3d)

Sets the floating point origin absolute position to a new value. Only works if bridge isConnected, otherwise nothing happens.

public bool SetFloatingOrigin(Vector3d newOrigin)

Parameters

newOrigin Vector3d

New floating point origin absolute position

Returns

bool

Returns true if the floating origin was shifted, false if bridge was not connected.

TranslateFloatingOrigin(Vector3d)

Moves the floating point origin by a translation vector. Only works if bridge isConnected, otherwise nothing happens.

public bool TranslateFloatingOrigin(Vector3d translation)

Parameters

translation Vector3d

Returns

bool

Returns true if the floating origin was shifted, false if bridge was not connected.

TranslateFloatingOrigin(Vector3)

Moves the floating point origin by a translation vector. Only works if bridge isConnected, otherwise nothing happens.

public bool TranslateFloatingOrigin(Vector3 translation)

Parameters

translation Vector3

Returns

bool

Returns true if the floating origin was shifted, false if bridge was not connected.