GodotSectors/Scripts/Space/SpaceSpawn.gd

11 lines
251 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(position.x * space.unit_scale, 0, position.y * space.unit_scale)