开发者

away3d global coordinates?

How can I refer to global coordinates of an aboject? like in P开发者_StackOverflow中文版V3D was for example object.sceneZ

x, y, z in Away3d return coordinates to object display container, there is a way to retrieve the global coordinates?


I just had a look at the docs and saw the sceneTransform property which is a Matrix3D instance, so you can access the global coordinates through the sceneTransforms' position property.

I would imagine it would something like:

trace(yourObject3D.sceneTransform.position);//a Vector3D instance

I haven't tried this, but it should work (famous last words :) )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜