Gamestudio Links
Zorro Links
Newest Posts
Icon "OP"
by JeyKey II. 10/27/26 00:01
No connection to MT4
by JeyKey II. 10/26/26 22:59
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (TipmyPip, ukgamer), 3,841 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Turn by traction??? [Re: Matan_Golan1] #51768
08/22/05 14:12
08/22/05 14:12
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
good as well, i'll add you.


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/
Re: Turn by traction??? [Re: Helghast] #51769
08/24/05 01:26
08/24/05 01:26
Joined: Jul 2005
Posts: 34
M
Matan_Golan1 Offline OP
Newbie
Matan_Golan1  Offline OP
Newbie
M

Joined: Jul 2005
Posts: 34
i found my problem if anyone cares...

its the tyre friction i set it to 120...
if you want to correct it please add this code to Tank_Move function:

if(key_cud == 0 && key_cuu == 0) || (key_cud == 1 && key_cuu == 1)
{
vec_set(motor1,vector(0,0,0));
vec_set(motor2,vector(0,0,0));
}

if(key_cur == 0 && key_cul == 0)|| (key_cur == 1 && key_cul == 1)
{
vec_set(motor1,vector(0,0,0));
vec_set(motor2,vector(0,0,0));
}

if(key_cuu)
{
phent_setfriction(l_wheel1,230);
phent_setfriction(l_wheel2,230);
phent_setfriction(l_wheel3,230);
phent_setfriction(r_wheel1,230);
phent_setfriction(r_wheel2,230);
phent_setfriction(r_wheel3,230);

vec_set(motor1,vector(-1000,800,0));
vec_set(motor2,vector(-1000,800,0));
}

if(key_cud)
{
phent_setfriction(l_wheel1,230);
phent_setfriction(l_wheel2,230);
phent_setfriction(l_wheel3,230);
phent_setfriction(r_wheel1,230);
phent_setfriction(r_wheel2,230);
phent_setfriction(r_wheel3,230);

vec_set(motor1,vector(1000,800,0));
vec_set(motor2,vector(1000,800,0));
}





if(key_cur)
{
phent_setfriction(l_wheel1,40);
phent_setfriction(l_wheel2,40);
phent_setfriction(l_wheel3,40);
phent_setfriction(r_wheel1,40);
phent_setfriction(r_wheel2,40);
phent_setfriction(r_wheel3,40);

vec_set(motor1,vector(1000,800,0));
vec_set(motor2,vector(-1000,-800,0));
}

if(key_cul)
{
phent_setfriction(l_wheel1,40);
phent_setfriction(l_wheel2,40);
phent_setfriction(l_wheel3,40);
phent_setfriction(r_wheel1,40);
phent_setfriction(r_wheel2,40);
phent_setfriction(r_wheel3,40);

vec_set(motor1,vector(-1000,-800,0));
vec_set(motor2,vector(1000,800,0));
}

Page 2 of 2 1 2

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