|
@@ -12,6 +12,9 @@ var resolution:int = 512
|
|
|
var radius:float = 10
|
|
|
var scaleFact:int = 1
|
|
|
|
|
|
+var origin:Vector3
|
|
|
+var center:Vector3
|
|
|
+
|
|
|
func setParams(latMinIN, latMaxIN, lonMinIN, lonMaxIN, resolutionIN, radiusIN:float, scaleFactIN):
|
|
|
latMin = latMinIN
|
|
|
latMax = latMaxIN
|
|
@@ -25,6 +28,8 @@ func setParams(latMinIN, latMaxIN, lonMinIN, lonMaxIN, resolutionIN, radiusIN:fl
|
|
|
func _ready():
|
|
|
.get_node("Mesh").setParams(latMin, latMax, lonMin, lonMax, resolution, radius, scaleFact)
|
|
|
.get_node("Mesh").genMesh()
|
|
|
+ .get_node("Origin").transform.origin = .get_node("Mesh").origin
|
|
|
+ .get_node("Center").transform.origin = .get_node("Mesh").center
|
|
|
#.translate(.get_node("Mesh").origin)
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|