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
2 registered members (AndrewAMD, VoroneTZ), 1,258 guests, and 4 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
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 | 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