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
3 registered members (AndrewAMD, TipmyPip, OptimusPrime), 15,229 guests, and 7 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
[newton] reset physic car #46660
05/25/05 07:21
05/25/05 07:21
Joined: Mar 2005
Posts: 21
S
saina_co Offline OP
Newbie
saina_co  Offline OP
Newbie
S

Joined: Mar 2005
Posts: 21
I am using the newton car physics in my game.
How do define a reset for car that my car return to center of road?

Last edited by Marco_Grubert; 05/25/05 19:26.
Re: [newton] reset physic car [Re: saina_co] #46661
05/25/05 19:26
05/25/05 19:26
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA

Re: [newton] reset physic car [Re: Marco_Grubert] #46662
07/15/05 19:57
07/15/05 19:57
Joined: Jun 2005
Posts: 1,001
Pennsylvania, USA
FoxZero Offline
Serious User
FoxZero  Offline
Serious User

Joined: Jun 2005
Posts: 1,001
Pennsylvania, USA
Marco how is that link helpful at all? I'd like to learn how to do this as well.


Check out my site http://foxzero.net
My band's website
http://wolf-hybrid.net

R.I.P. Dave Williams
Re: [newton] reset physic car [Re: FoxZero] #46663
07/15/05 20:12
07/15/05 20:12
Joined: Sep 2002
Posts: 344
São Paulo SP Brazil
Marcio Esper Offline
Senior Member
Marcio Esper  Offline
Senior Member

Joined: Sep 2002
Posts: 344
São Paulo SP Brazil
It will drop your car in the center of the map.


function centerworld()
{
var car;

p_vehicle.roll = 0;
p_vehicle.tilt = 0;
p_vehicle.pan = 0;
p_vehicle.x=0;
p_vehicle.z=0;
p_vehicle.y=0;

car = NewtonGetBody (p_vehicle);

NewtonBodySetTransform(car);
}

I hope it help you.

best regards,

Marcio

Re: [newton] reset physic car [Re: Marcio Esper] #46664
07/16/05 01:49
07/16/05 01:49
Joined: Jun 2005
Posts: 1,001
Pennsylvania, USA
FoxZero Offline
Serious User
FoxZero  Offline
Serious User

Joined: Jun 2005
Posts: 1,001
Pennsylvania, USA
Works great Marcio! You should add one more thing though under the function.

on_r=centerworld;




Check out my site http://foxzero.net
My band's website
http://wolf-hybrid.net

R.I.P. Dave Williams

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