26.09.2018, 19:53
Hi all , i have an problem with physics.inc (i never used it before so...idk sure what's wrong )
So , my problem it's ... the object won't move.
Biliard[PoolID][Ball][0] = CreateObject(3003, 0.010589+Biliard[PoolID][x], 0.428184+Biliard[PoolID][y], 0.930358+Biliard[PoolID][z], 0, 0, 0);
What i should do?
EDIT: And at stock InitBall i get akslimit.
So , my problem it's ... the object won't move.
Код HTML:
CMD:testmove(playerid,params[]) { new Float:spd; if(sscanf(params,"f",spd)) return SendClientMessage(playerid,-1,"Usage: /testmove [Speed]"); PHY_SetObjectVelocity(Biliard[AccInfo[playerid][InPool]][Ball][0], 0.0, -speed); return 1; }
Код HTML:
stock InitBall(PoolID,i) { PHY_InitObject(Biliard[PoolID][Ball][i], 3003, _, _, Ex_MODE_2D); PHY_SetObjectFriction(Biliard[PoolID][Ball][i], 0.40); PHY_RollObject(Biliard[PoolID][Ball][i]); PHY_SetObjectWorld(Biliard[PoolID][Ball][i], 3); Biliard[PoolID][bExist][i] = 1; }
What i should do?
EDIT: And at stock InitBall i get akslimit.