thcmedia / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

scale property affects angle calculations #115

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
using the following code snippet:

public var cone:Cone = new Cone(null, 300, 300);
override protected function init3d():void {
    cone.scale = 3;
    cone.pitch(-45);
    default_scene.addChild(cone);
    }

Instead of getting a cone that is 3 times larger and rotated by 45 degrees,
I get one that is 3 times larger and rotated 135 degrees.  It appears that
scale is now scaling not just the size of the object but rotations as well.
 If I change the pitch angle to 15 degrees, I get what I was looking for.

using latest papervision 2 svn trunk (At revision: 756) on WinXP Pro

Original issue reported on code.google.com by Debbie.k...@saatchihealthcare.com on 15 Oct 2008 at 5:06

GoogleCodeExporter commented 8 years ago
Tim ? 

Original comment by r.hauw...@gmail.com on 17 Oct 2008 at 1:47