From 90eeb72728cd3847408d3491d55a0e2a51d1db0a Mon Sep 17 00:00:00 2001 From: Chris Speciale Date: Wed, 10 Jul 2024 07:23:37 -0400 Subject: [PATCH] Stage: Revert accidental changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We like Vector3D.... 🤣 Maybe. --- src/starling/display/Stage.hx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/starling/display/Stage.hx b/src/starling/display/Stage.hx index a1ca9129..14f057bd 100644 --- a/src/starling/display/Stage.hx +++ b/src/starling/display/Stage.hx @@ -15,7 +15,7 @@ import openfl.geom.Matrix; import openfl.geom.Matrix3D; import openfl.geom.Point; import openfl.geom.Rectangle; -import openfl.geom.Array3D; +import openfl.geom.Vector3D; import starling.core.Starling; import starling.events.EnterFrameEvent; @@ -60,7 +60,7 @@ class Stage extends DisplayObjectContainer @:noCompletion private var __color:UInt; @:noCompletion private var __fieldOfView:Float; @:noCompletion private var __projectionOffset:Point; - @:noCompletion private var __cameraPosition:Array3D; + @:noCompletion private var __cameraPosition:Vector3D; @:noCompletion private var __enterFrameEvent:EnterFrameEvent; @:noCompletion private var __enterFrameListeners:Array; @@ -95,7 +95,7 @@ class Stage extends DisplayObjectContainer __color = color; __fieldOfView = 1.0; __projectionOffset = new Point(); - __cameraPosition = new Array3D(); + __cameraPosition = new Vector3D(); __enterFrameEvent = new EnterFrameEvent(Event.ENTER_FRAME, 0.0); __enterFrameListeners = new Array(); } @@ -164,7 +164,7 @@ class Stage extends DisplayObjectContainer * To change the position of the camera, you can modify the properties 'fieldOfView', * 'focalDistance' and 'projectionOffset'. */ - public function getCameraPosition(space:DisplayObject=null, out:Array3D=null):Array3D + public function getCameraPosition(space:DisplayObject=null, out:Vector3D=null):Vector3D { getTransformationMatrix3D(space, sMatrix3D); @@ -383,8 +383,8 @@ class Stage extends DisplayObjectContainer * *

CAUTION: not a copy, but the actual object!

*/ - public var cameraPosition(get, never):Array3D; - private function get_cameraPosition():Array3D + public var cameraPosition(get, never):Vector3D; + private function get_cameraPosition():Vector3D { return getCameraPosition(null, __cameraPosition); }