![]() |
LayerProcGen v0.4.0
Layer-based infinite procedural generation
|
Class for handling floating origin in order to support large worlds without suffering floating point precision issues. More...
Static Public Member Functions | |
| static void | RegisterHandler (IOriginHandler handler) |
| Implementors of the IOriginHandler interface must call this method to register themselves when they become enabled. | |
| static void | SetInitialOrigin (Point3 newOrigin) |
| Set the origin and invoke the origin handlers with both old and new origin parameters being the new origin. This should have no effect on delta-based handlers, which are considered to already be positioned relative to the origin. | |
| static void | SetOrigin (Point3 newOrigin) |
| Set the origin and invoke the origin handlers. | |
| static void | UnregisterHandler (IOriginHandler handler) |
| Implementors of the IOriginHandler interface must call this method to unregister themselves when they become disabled. | |
Properties | |
| static Point3 | origin [get] |
| The current scene origin in world space. | |
Class for handling floating origin in order to support large worlds without suffering floating point precision issues.
Individual behaviors that control objects' positions need to implement the IOriginHandler interface and register themselves to to the FloatingOrigin, to be invoked when the origin is moved.