Gamestudio Links
Zorro Links
Newest Posts
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 3,370 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joe_kane, Namitha_NN, Syndrela, agasior, mosfet
19189 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
object bouncing too hard #33397
09/17/04 01:45
09/17/04 01:45
Joined: Sep 2004
Posts: 3
M
Melnic Offline OP
Guest
Melnic  Offline OP
Guest
M

Joined: Sep 2004
Posts: 3
What am I doing wrong here:
http://davidditch.com/Boat/docksimulator/physicstest.zip

Use arrow keys. If you hit arrow to the left, it will hit the right column and bounce back harder than it hits. I"ve played with elasticity but I'm at a loss.

Here is my behaviour
action block_move
{
my.fat = on; // the first 3 lines of code
my.narrow = on; // enable the new
c_setminmax(my); // collision detection system used by A6.2 or newer versions
var boat_thrust = 0;
phent_settype( my, PH_RIGID, PH_SPHERE);
phent_setmass(my,1,PH_SPHERE);
phent_setelasticity(my,0,0);
phent_setfriction(my,10);
phent_setdamping(my,1,1);

while (1)
{

if ((key_cuu == on)||(joy_1 == on)) // press and hold the "Left" arrow key to move the car
{
boat_thrust = 1;
phent_addforcelocal(my,vector(200,0,0),vector(0,0,0));
}
if ((key_cud == on)||(joy_2 == on)) // press and hold the "Left" arrow key to move the car
{
boat_thrust = 1;
phent_addforcelocal(my,vector(-200,0,0),vector(0,0,0));
}
if ((key_cul == on)||(joy_force.x > 1)) // press and hold the "Left" arrow key to move the car
{
boat_thrust = 1;
phent_addforcelocal(my,vector(0,-100,0),vector(-70,0,0));
}
if ((key_cur == on)||(joy_force.x < -(1) )) // press and hold the "Left" arrow key to move the car
{
boat_thrust = 1;
phent_addforcelocal(my,vector(0,100,0),vector(-70,0,0));
}

wait(1);
}

}

Re: object bouncing too hard [Re: Melnic] #33398
09/17/04 22:10
09/17/04 22:10
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
i am having this problem too.
but if i let 2 physics objects collide, it bounces like hell:S
maybe it's a bug, lets ask JCL (or was marco grubert for A6PE...)

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1