|
From: <axl...@us...> - 2009-06-04 10:48:03
|
Revision: 308
http://hgengine.svn.sourceforge.net/hgengine/?rev=308&view=rev
Author: axlecrusher
Date: 2009-06-04 10:46:55 +0000 (Thu, 04 Jun 2009)
Log Message:
-----------
use axis from XML
Modified Paths:
--------------
Mercury2/modules/BillboardNode.cpp
Modified: Mercury2/modules/BillboardNode.cpp
===================================================================
--- Mercury2/modules/BillboardNode.cpp 2009-06-04 01:43:22 UTC (rev 307)
+++ Mercury2/modules/BillboardNode.cpp 2009-06-04 10:46:55 UTC (rev 308)
@@ -26,7 +26,7 @@
//needs to be the local axis to rotate around
MercuryMatrix global(matrix);
- MQuaternion mtmp = MQuaternion::CreateFromAxisAngle(MercuryVector(0,0,1), f);
+ MQuaternion mtmp = MQuaternion::CreateFromAxisAngle(m_billboardAxis, f);
global.Rotate( mtmp );
MercuryMatrix m = RenderableNode::ManipulateMatrix( global );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|