Class FloatingOriginManager
public class FloatingOriginManager
- Inheritance
-
FloatingOriginManager
Fields
OnAfterFloatingOriginShifted
Invoked after OnFloatingOriginShifted
public Action<FloatingOriginShiftArgs> OnAfterFloatingOriginShifted
Field Value
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
WorldPositionMaxRange
Maximum abs position of an entity/liveQuery/floatingOrigin
public const float WorldPositionMaxRange = 1.7014117E+38
Field Value
Methods
GetFloatingOrigin()
Returns the current absolute position of the floating point origin.
public Vector3d GetFloatingOrigin()
Returns
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
Vector3dNew 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.