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
0 registered members (), 18,654 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
physX forward movement after a pan #370773
05/15/11 15:16
05/15/11 15:16
Joined: Sep 2006
Posts: 36
Tempe, AZ
B
bpc31 Offline OP
Newbie
bpc31  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 36
Tempe, AZ
Does anyone have any sample code for physX car movement that doesn't use wheels? When I use this code the boat moves in global X direction not relative to the boats pan orientation. How do I make my nullvector variable the boat's new orientation?

Code:
while(1)
{
	if (key_cuu == 1)
	{
	pXent_addforcelocal(my, vector(1000,0,0), nullvector);
	}
	
	if (key_cul == 1)
	{
	pXent_addtorquelocal(my, vector(0,0,1000));
	}
		
	if (key_cur == 1)
	{
	pXent_addtorquelocal(my, vector(0,0,-1000));
	}
	wait(1);
}



Re: physX forward movement after a pan [Re: bpc31] #371425
05/21/11 00:20
05/21/11 00:20
Joined: Sep 2006
Posts: 36
Tempe, AZ
B
bpc31 Offline OP
Newbie
bpc31  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 36
Tempe, AZ
Nobody has created vehicle physX w/o wheels? Samples please! laugh

Re: physX forward movement after a pan [Re: bpc31] #371426
05/21/11 00:29
05/21/11 00:29
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Have a look at vec_rotate (in combination with my.pan)!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

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