CodeRecipe( );

one stop for all game coders..

Follow us on Twitter
Home
Physics error codes Print E-mail
User Rating: / 1
PoorBest 
Written by CR Team   
Saturday, 01 August 2009 07:35

Director physics engine from version 11 onwards throw up unique number each reporting a different kind/type of error. Here is a list of commonly thrown error codes !

-21 : Mesh deform is not added for the Model. Each 3d model that needs to be converted to a rigid body needs to applied with #meshdeform modifier.

1
2
3
4
5
6
--get the 3d model
m_3dmodel = member("3dworld").model("3dmodelname")
 
--add meshdeform modifier
m_3dmodel.addmodifier(#meshDeform)
--Continue with the creation of rigid Body


- 28 : When a rigid body with concaveshape proxy is made #dynamic. If you have created a Proxy template of type #concave ( using which only concave static rigid body can be created ) and trying to create a dynamic concave rigid body out of it. You want be allowed !

- 26: This can usually happen if you have applied LOD modifier and the number of faces/vertices are chopped off by the same. One quick fix to try out here would be to disable LOD modifier, create a proxy template for the same mesh, save and use it !

- 1: LOD can be the reason for the same, see -26. Another common reason for getting -1 error might be because your physics world is not initialized or not hooked up to the 3d world properly,

- 4: This is thrown when you have passed a parameter wrongly. Say the method expects a string name and you have passed a object or integer.


 

CR Login

CodeRecipe Store

Twitter Feed

CR :) >>: RT @indiegamescom: Student game dev competition Dare to be Digital now accepting applicants http://t.co/Hf1phWJG