well try this instead for point http://away3d.googlecode.com/svn/trunk/fp10/Examples/Away3DLite/as/src/Advanced_MultiMario.as
as remember is mouse move+pointer on plane there hth 2009/10/26 mogg <[email protected]> > > katopz, > > Thank you for the suggestion but that sample file does not provide any > examples to support this. I had looked at that example before but it > did not demonstrate translating the click point on an Object3D that is > inside a Object3DContainer that is then inside the View3D. > > I'm looking to figure out how to translate the nested 3D point from > where the user clicked on the object to the View coordinates so I can > target that very point and not the object center. > > Here is what I would do in Away3D 3.0.0 (not pretty but worked). > > var v:Vertex = new Vertex(event.sceneX,event.sceneY, event.sceneZ); > var m:MatrixAway3D = new MatrixAway3D(); > var m2:MatrixAway3D = new MatrixAway3D(); > var m3:MatrixAway3D = new MatrixAway3D(); > m.clone(this._innerContainer.transform); > m2.clone(this._outerContainer.transform); > m3.multiply(m2,m); > m.inverse(m3); > v.transform(m); > > How would I go about this in Away3Dlite? > > On Oct 25, 8:14 pm, katopz <[email protected]> wrote: > > do try > > > > http://away3d.googlecode.com/svn/trunk/fp10/Examples/Away3DLite/as/sr... > > > > hth > > > > 2009/10/25 mogg <[email protected]> > > > > > > > > > > > > > > > > > I use to do a few matrix operations to get the exact mouse hit > > > position on a nested object. (object3d inside an objectContainer3D > > > inside the scene). > > > > > I would then translate this to a world coordinate and have a laser > > > bolt go directly to the very spot I clicked on vice just object > > > center. This also involved a matrix invert. > > > > > I have tried several things with the current Away3Dlit and I'm totally > > > lost. > > > > > Any hints on how to go about this. The forums on this subject for > > > Away3Dlite don't seem to answer this yet. > > > > > Again, thank you for the hard work on Away3Dlite. It is amazing! > > > > -- > > katopzhttp://www.sleepydesign.com- Hide quoted text - > > > > - Show quoted text - -- katopz http://www.sleepydesign.com
