Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Car Physics #403591
06/22/12 12:38
06/22/12 12:38
Joined: May 2010
Posts: 41
İstanbul/Turkey
Sorrowful Offline OP
Newbie
Sorrowful  Offline OP
Newbie

Joined: May 2010
Posts: 41
İstanbul/Turkey
Code:
VECTOR araba_git;

ENTITY* tekeronsol;
ENTITY* tekeronsag;
ENTITY* tekerarkasol;
ENTITY* tekerarkasag;

action tekeronsl()
{
  tekeronsol = me;	
  pXcon_setparams1(me,araba_git, NULL, NULL);
}
action tekeronsg()
{
  tekeronsag = me;	
  pXcon_setparams1(me,araba_git, NULL, NULL);
}
action tekerarkasl()
{
  tekerarkasol = me;	
  pXcon_setparams2(me,araba_git, NULL, NULL);
}
action tekerarkasg()
{
  tekerarkasag = me;	
  pXcon_setparams2(me,araba_git, NULL, NULL);
}

action araba_ac()
{
	player = me;
	pXent_settype(me,PH_RIGID,PH_BOX);
	pXcon_add(PH_WHEEL,tekerarkasag,my,0);
   pXcon_add(PH_WHEEL,tekerarkasol,my,0);
   pXcon_add(PH_WHEEL,tekeronsag,my,0);
   pXcon_add(PH_WHEEL,tekeronsol,my,0);
	while(1)
   { 
   pXcon_setwheel(tekeronsol,-5,0,0);
   pXcon_setwheel(tekeronsag,-5,0,0); 
   pXcon_setwheel(tekerarkasol,0,500,0);
   pXcon_setwheel(tekerarkasag,0,500,0);
   pXent_move(me,araba_git,nullvector);
   araba_git.x = (key_w-key_s)*40*time_step;
   araba_git.y = (key_a-key_d)*20*time_step;
   camera.x = me.x;
	camera.y = me.y - 300; 
	camera.z = 650; 
	camera.tilt = -10;
  	wait(1); 
  	}
}

function main()
{
	physX_open(); 
	video_mode = 9;
   video_screen = 1;
	level_load("BasGaza.wmb");
}





car is moving only,wheels do not move and is not mounted on wheels...

Last edited by Sorrowful; 06/23/12 18:02.

A8.40 Professional
Sancak Oyun Ekibi
Re: Car Physics [Re: Sorrowful] #403688
06/24/12 14:53
06/24/12 14:53
Joined: May 2010
Posts: 41
İstanbul/Turkey
Sorrowful Offline OP
Newbie
Sorrowful  Offline OP
Newbie

Joined: May 2010
Posts: 41
İstanbul/Turkey
Help..


A8.40 Professional
Sancak Oyun Ekibi
Re: Car Physics [Re: Sorrowful] #403689
06/24/12 14:54
06/24/12 14:54
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Edit: use A8 car template

Last edited by 3run; 06/24/12 14:55.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Car Physics [Re: 3run] #403690
06/24/12 14:57
06/24/12 14:57
Joined: May 2010
Posts: 41
İstanbul/Turkey
Sorrowful Offline OP
Newbie
Sorrowful  Offline OP
Newbie

Joined: May 2010
Posts: 41
İstanbul/Turkey
I want to learn with make...


A8.40 Professional
Sancak Oyun Ekibi
Re: Car Physics [Re: Sorrowful] #403691
06/24/12 15:51
06/24/12 15:51
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
You can learn from it as well, and it will be much easier to learn from already working example. I've learned myself from it as well. There is no one will make up a demo with your script from scratch to test it and to find what you've done wrong. Believe me, the best way for you will be to learn from car template.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Car Physics [Re: 3run] #403692
06/24/12 17:36
06/24/12 17:36
Joined: May 2010
Posts: 41
İstanbul/Turkey
Sorrowful Offline OP
Newbie
Sorrowful  Offline OP
Newbie

Joined: May 2010
Posts: 41
İstanbul/Turkey
OK Thanks..


A8.40 Professional
Sancak Oyun Ekibi
Re: Car Physics [Re: Sorrowful] #403695
06/24/12 19:17
06/24/12 19:17
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
or take a look to the knightsonwheels.c sample


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Car Physics [Re: painkiller] #403696
06/24/12 20:00
06/24/12 20:00
Joined: May 2010
Posts: 41
İstanbul/Turkey
Sorrowful Offline OP
Newbie
Sorrowful  Offline OP
Newbie

Joined: May 2010
Posts: 41
İstanbul/Turkey
ent_create("vehicle_1.mdl",terrain_pos(NULL,300,0,30),knight_on_wheels);

vehicle_1.mdl where??


A8.40 Professional
Sancak Oyun Ekibi
Re: Car Physics [Re: Sorrowful] #403697
06/24/12 20:05
06/24/12 20:05
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
It's taken from the ".wrs" archive. You won't be able to find it. Insert your own vehicle, and change the wheel positions.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Car Physics [Re: 3run] #403700
06/24/12 20:41
06/24/12 20:41
Joined: May 2010
Posts: 41
İstanbul/Turkey
Sorrowful Offline OP
Newbie
Sorrowful  Offline OP
Newbie

Joined: May 2010
Posts: 41
İstanbul/Turkey
OK.Thanks All.


A8.40 Professional
Sancak Oyun Ekibi

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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