function createobjectphysics(myobj,myphybody,myphyshape)
select myphybody
case 1
Create3DPhysicsStaticBody(myobj)
endcase
case 2
Create3DPhysicsDynamicBody(myobj)
endcase
endselect
select myphyshape
case 1
SetObjectShapesphere(myobj)
endcase
case 2
SetObjectShapebox(myobj)
endcase
case 3
SetObjectShapeCylinder(myobj,0)
endcase
case 4
SetObjectShapeCapsule(myobj,0)
endcase
case 5
SetObjectShapeCone(myobj,0)
endcase
case 6
SetObjectShapeCompound(myobj)
endcase
case 7
SetObjectShapeStaticPolygon(myobj)
endcase
case 8
SetObjectShapeConvexHull(myobj)
endcase
case 9
endcase
endselect
endfunction
here is the function I use, to explain,you call it with say
createobjectphysics(ObjID,1,2)
this will give it a static body (1) and a cube shape, which is fine for slopes,or you can use a static poly if the object in question has no aspirations of being dynamic
Just make sure you call Step3DPhysicsWorld() in your main loop,also it is best to call it at the top of the loop for some wack reason...
after you call this function, it is then you set the other stuff like restitution...friction and damping on the object.
near the top of the program.before the main loop, use..
Create3DPhysicsWorld()
Before anything physical!
If the scale of the cube is too big,or too small,you will have to scale it up/down in blender or use agk scaling commands!
I have no idea what sizes you are using...
Hail to the king, baby!