public override void PrototypingReset() { this.sc = SphericalSpace.FromCartesian(this.transform.position, 3f, 10f, 0f, Mathf.PI * 2f, 0f, Mathf.PI * 2f); }
void Start() { this._sphericalSpace = SphericalSpace.FromCartesian(this.transform.position, 3f, 10f, 0f, Mathf.PI * 2f, 0f, Mathf.PI / 4f); // Initialize position this.transform.position = this._sphericalSpace.ToCartesian() + this.pivot.position; }
/// <inheritdoc /> /// <summary> /// </summary> public override void PreSetup() { this._x = this.Identifier + "Polar_"; this._y = this.Identifier + "Elevation_"; this._z = this.Identifier + "Radius_"; var reference_point = this.transform.position; if (this.coordinate_space == CoordinateSpace.Environment_) { reference_point = this.ParentEnvironment.TransformPoint(reference_point); } this.sc = SphericalSpace.FromCartesian(reference_point, this._spherical_space.Space.Min.z, this._spherical_space.Space.Max.z, this._spherical_space.Space.Min.x, this._spherical_space.Space.Max.x, this._spherical_space.Space.Min.y, this._spherical_space.Space.Max.y); }
public SphericalChunk(Vector2 centerCoordinate, SphericalSpace space) { this.centerCoordinate = space.GetCanonicalCoordinates(centerCoordinate); this.centerPosition = space.GetPositionFromCoordinate(this.centerCoordinate); this.space = space; }
public SphericalPoint(Vector2 coordinate, SphericalSpace space) { this.coordinate = space.GetCanonicalCoordinates(coordinate); this.position = space.GetPositionFromCoordinate(this.coordinate); this.space = space; }