20.01.2014, 11:10
This is a fs that I did to make you understand how physics work.. might help you better understand how it works instead of looking in the big code recommended by Riddick94
http://pastebin.com/gUbRxbY4
basically you have to joke with this configs
You can find them in the test command
If you don't want mapandreas just set the z cord as you wish and the object will bounce when the object pos is < than z cord
http://pastebin.com/gUbRxbY4
basically you have to joke with this configs
pawn Код:
OBJ[ID][vx] = floatsin(-ang, degrees) * -5.5;
OBJ[ID][vy] = floatcos(-ang, degrees) * -5.5;
OBJ[ID][vz] = -3.5;
OBJ[ID][gravity] = 10.1;
OBJ[ID][bounce_factor] = 40.49;
OBJ[ID][radiuss] = 0.2;
OBJ[ID][friction] = 0.001;
If you don't want mapandreas just set the z cord as you wish and the object will bounce when the object pos is < than z cord