I don't know if it HAS to be this way, but I set my gravity first, and I set it outside of the function for the object, so maybe create a function like PhysicsINI and put those things like PH_SetGravity, in there. Call that function from the start of main.

Also think about giving your actions / functions more useful names, and to ensure you don't conflict with other functions, although im sure there isn't a 'dice' function...

Here's the code

Code:

// Set Physics
phent_settype(my, PH_RIGID, PH_BOX);
phent_enable(my, 1 ); // - You dont seem to have this in your script above
phent_setmass(my, 5, PH_BOX;
phent_setfriction(my,50);
phent_setdamping(my,0,0);
phent_setelasticity(my, 20,0);
phent_setmaxspeed( my, 10000, 10000);



Last edited by indiGLOW; 01/21/06 14:40.

The Art of Conversation is dead : Discuss