I use away3d v4.1 alpha and awayphysics v1.0
who knows how to fix it?
At awayphyscis example ConvexHullShapeTest debugdraw not correctSoftware: Away3D 4.x |
||
rontian, Newbie
Posted: 29 November 2012 02:22 AM Total Posts: 6
|
||
rontian, Newbie
Posted: 29 November 2012 06:13 AM Total Posts: 6 [ # 1 ] I viewed the model parser.
for (var i:int = 0; i < indexDataLen; i += 3 ) { |
||
John Brookes, Moderator
Posted: 29 November 2012 12:07 PM Total Posts: 732 [ # 2 ] Make sure your using the lastest |
||
|
||
ranoya, Newbie
Posted: 19 February 2013 10:49 PM Total Posts: 29 [ # 4 ] I have the same problem. I think this is caused by an diferent extructure adopted by SubGeometry objects in the actual release of Away 4.1. The AWPConvexHullShape constructor get the geometry.subGeometry[0].vertexData for construct the “physics triangle shape”. In version 4.0, this Vector had only vertex position data. The actual SubGeometry::vertexData carries normal, tangent and UV data, all in the same Vector (probably for performance optimization). But away 4.1 is Alpha, and the classes are instable… May someone confirm this? |
||
ranoya, Newbie
Posted: 20 February 2013 12:43 AM Total Posts: 29 [ # 5 ] I think I understood what is happening. Now there is a class, CompactSubGeometry, whose vertexData property is read by ConvexHullShape. This Vector has data that the ConvexHullShape class I change ConvexHullShape class constructor this way :
//var vertex Data : Vector.<Number> = geometry.subGeometries[0].vertexData; and the physics works OK. For the debugger to display the correct shape, you need to write a similar code in AWPDebugDraw class. While the “official” solution doesn´t come, this is a provisional one.
|
||
Denis, Newbie
Posted: 20 February 2013 07:38 AM Total Posts: 15 [ # 6 ] Use this http://away3d.com/forum/viewthread/3887/ and use away3d 4.1 |
||
|
||
John Brookes, Moderator
Posted: 20 February 2013 12:22 PM Total Posts: 732 [ # 8 ] If your AWPConvexHullShape.as doesnt look like Then you need to update to the DEV branch. |
||
|