GodotSectors/Scripts/Space/SpaceSpawn.gd

11 lines
265 B
GDScript

extends SpaceEntity
## Position for mob to be spawned in.
##
class_name SpaceSpawn
func space_position(space: Space) -> Vector3:
# todo: Get current region elevation
return Vector3(global_position.x * space.unit_scale, 0, global_position.y * space.unit_scale)