Sprite3D ‘registration’ point

Software: Away3D 4.x

wagster, Member
Posted: 31 August 2011 08:51 PM   Total Posts: 68

I have a rectangular Sprite 3D that appears to be anchored into the scene at its centre.  That is, when I move the camera, the Sprite rotates around its centre.  I want to anchor it at the middle of the bottom edge - is there a way of doing this? (apart from making it twice as high and making the bottom half transparent, which is really messy)

   

Avatar
Alexander Seifert, Moderator
Posted: 05 September 2011 12:04 PM   Total Posts: 129   [ # 1 ]

I guess you’re looking for the “movePivot” functionality, found in base class Object3D.

 Signature 
signature_image

http://www.deltastrike.org

   

wagster, Member
Posted: 09 September 2011 10:12 PM   Total Posts: 68   [ # 2 ]

Thanks. So would it be true to say that, roughly, PivotPoint = RegistrationPoint?

   

Avatar
Alexander Seifert, Moderator
Posted: 10 September 2011 03:38 PM   Total Posts: 129   [ # 3 ]

That’s been my assumption so far =)

 Signature 
signature_image

http://www.deltastrike.org

   

wagster, Member
Posted: 10 September 2011 09:20 PM   Total Posts: 68   [ # 4 ]

Thanks Alexander.  Still not working, mind.  I can move the pivotPoint to any position and it won’t change anything.  I suspect this is because the pivotPoint doesn’t come into play until you rotate the Sprite locally.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X