Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (OptimusPrime, AndrewAMD), 14,580 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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