Create3DPhysicsWorld()
Set3DPhysicsGravity(0, -3, 0)
obj = LoadObjectWithChildren("smile/terrain.fbx")
img=LoadImage("smile/terrain.png")
SetObjectImage(obj,img,1)
Create3DPhysicsStaticBody( obj )
SetObjectShapeBox(obj)
obj1 = LoadObjectWithChildren("smile/T.x")
img1=LoadImage("smile/T.png")
SetObjectImage(obj1,img1,1)
//SetObjectScale(obj1,0.1,0.1,0.1)
SetObjectScale(obj1,0.1,0.1,0.1)
SetObjectScalePermanent(obj1,0.1,0.1,0.1)
SetObjectPosition(obj1,105,100,-105)
Create3DPhysicsDynamicBody( obj1 )
SetObject3DPhysicsMass(obj1, 1.0)
SetObjectShapeBox(obj1)
if I use SetObjectScalePermanent(obj1,0.1,0.1,0.1) or don't use scale, the position of object is on the air.
if I use SetObjectScale(obj1,0.1,0.1,0.1), the position of object is right but when plays the animation, the object becomes out of shape.