Changing pivot point on scaled mesh mess up the display

Software: Other

SuperSam, Sr. Member
Posted: 10 October 2013 09:35 AM   Total Posts: 102


I noticed an issue that seems related to transform order and pivot points. I’m not sure if it’s Away3D or AwayBuilder’s problem.

Steps to reproduce:
- Create a geometry
- Create a mesh with that geometry
- Scale that mesh to anything except 1
- Move the mesh pivot as you please

You’ll notice that when you move the pivot on an axis where scale != 1, both the pivot AND the graphics move. It’s due to transform order probably… is it expected behaviour ?

If so, how can I move the pivot point without changing the appearance of a mesh which has had its geometry scaled ?

I’m guessing this would normally be a job for MeshHelper::applyPosition, which AwayBuilder doesn’t support yet.


John Brookes, Sr. Member
Posted: 10 October 2013 01:14 PM   Total Posts: 732   [ # 1 ]

Just tested and replacing this line

with this

_transform.prependTranslation(-_pivotPoint.x/_sca.x, -_pivotPoint.y/_sca.y, -_pivotPoint.z/_sca.z);

seems to fix it in both away and builder.

As for AwayBuilder you would have to rebuild it with the fix.

Submit a bug.


SuperSam, Sr. Member
Posted: 10 October 2013 02:56 PM   Total Posts: 102   [ # 2 ]

Thanks, sounds like it would do indeed.

Rebuilding AwayBuilder is very cumbersome for me as I don’t use Flash Builder nor Flex SDK 4.9.1+. Hopefully they’ll agree to rebuild it for everyone after they will have fixed Away3D smile



Away3D Forum

Member Login