AR + GPS Location  3.0.0
All Classes Namespaces Functions Variables Properties Events Pages
ARLocation.PlaceAtLocation Class Reference

Apply to a GameObject to place it at a specified geographic location. More...

Inheritance diagram for ARLocation.PlaceAtLocation:

Classes

class  LocationSettingsData
 
class  ObjectUpdatedEvent
 
class  PlaceAtOptions
 
class  StateData
 

Public Member Functions

void Restart ()
 
void UpdatePosition (Location deviceLocation, bool forceUpdate=false)
 

Static Public Member Functions

static GameObject CreatePlacedInstance (GameObject go, Location location, PlaceAtOptions options, bool useDebugMode=false)
 
static PlaceAtLocation AddPlaceAtComponent (GameObject go, Location location, PlaceAtOptions options, bool useDebugMode=false)
 
static GameObject CreatePlacedInstanceAtWorldPosition (GameObject go, Vector3 worldPosition, PlaceAtOptions options, out Location location, bool useDebugMode=false)
 

Public Attributes

LocationSettingsData LocationOptions = new LocationSettingsData()
 
PlaceAtOptions PlacementOptions = new PlaceAtOptions()
 
bool DebugMode
 
ObjectUpdatedEvent ObjectLocationUpdated = new ObjectUpdatedEvent()
 
ObjectUpdatedEvent ObjectPositionUpdated = new ObjectUpdatedEvent()
 
double RawGpsDistance
 
bool UseGroundHeight => state.Location.AltitudeMode == AltitudeMode.GroundRelative
 

Properties

Location Location [get, set]
 
float SceneDistance [get]
 
bool Paused [get, set]
 

Detailed Description

Apply to a GameObject to place it at a specified geographic location.

Definition at line 53 of file PlaceAtLocation.cs.

Member Data Documentation

◆ RawGpsDistance

double ARLocation.PlaceAtLocation.RawGpsDistance
Initial value:
=>
Location.HorizontalDistance(locationProvider.Provider.CurrentLocationRaw.ToLocation(),
state.Location)

Definition at line 201 of file PlaceAtLocation.cs.


The documentation for this class was generated from the following file:
ARLocation.Location.HorizontalDistance
static double HorizontalDistance(Location l1, Location l2)
Calculates the horizontal distance according to the current function set in the configuration.
Definition: Location.cs:214
ARLocation.ARLocationProvider.Provider
ILocationProvider Provider
Returns the current location provider.
Definition: ARLocationProvider.cs:63