This is G o o g l e's cache of http://www.flashsandy.org/forum/index.php?showtopic=500&mode=threaded&pid=2970 as retrieved on 31 Jul 2007 22:14:03 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:ESSfH7lTRRMJ:www.flashsandy.org/forum/index.php%3Fshowtopic%3D500%26mode%3Dthreaded%26pid%3D2970+site:www.flashsandy.org+showtopic&hl=en&ct=clnk&cd=89


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: showtopic

Welcome Guest ( Log In | Register )

> getPosition Bug?
halfknight
post May 3 2007, 09:20 AM
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.

???
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
kiroukou
post May 3 2007, 09:32 AM
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 );

++
User is offlineProfile CardPM
Go to the top of the page
+Quote Post



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

- Lo-Fi Version Time is now: 31st July 2007 - 09:54 PM
phpMyVisites