Discussion:
Global position of vertext
Karim Beyrouti
2010-10-10 10:19:40 UTC
Permalink
Hello lovely list !

just wondering how to get the global/world position of an object's vertex ( object is rotated / moved & scaled )...
should be simple but struggling a little with this one. ( maths is not my strongest attribute ).

Many thanks


Karim
Karim Beyrouti
2010-10-10 10:29:47 UTC
Permalink
Got - it -

var v:Number3D= new Number3D(do3d.geometry.vertices[vertexID].x, do3d.geometry.vertices[vertexID].y, do3d.geometry.vertices[vertexID].z);
Matrix3D.multiplyVector(do3d.world, v);

Also needed to make sure the scene was rendered before this was calculated...
Post by Karim Beyrouti
Hello lovely list !
just wondering how to get the global/world position of an object's vertex ( object is rotated / moved & scaled )...
should be simple but struggling a little with this one. ( maths is not my strongest attribute ).
Many thanks
Karim
_______________________________________________
Papervision3D mailing list
http://osflash.org/mailman/listinfo/papervision3d_osflash.org
Loading...