|
| halfknight |
Post
#1
|
|
Member ![]() ![]() Group: Members Posts: 11 Joined: 18-April 07 Member No.: 1,071 |
Hi,
I have an event handler for an object3D like this CODE function cb_onPress (e:ObjectEvent) { var obj:Object3D = e.getTarget(); trace ('click Pos: '+obj.getPosition()); trace ('click Pos: '+myObj.getPosition()); } the strange thing is when i move the camera the position of the object is changing though the object is not moving. ??? |
| kiroukou |
Post
#2
|
|
Administrator ![]() ![]() ![]() Group: Root Admin Posts: 886 Joined: 12-June 06 Member No.: 1 |
Sure, substract the camera position (IMG:style_emoticons/default/smile.gif)
VectorMath.sub( objectPosition, CameraPosition ); ++ |
| Lo-Fi Version | Time is now: 31st July 2007 - 09:54 PM |