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
1 registered members (TipmyPip), 18,546 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
gs physics: scale adjustment #280424
07/22/09 15:34
07/22/09 15:34
Joined: Apr 2006
Posts: 329
M
molotov Offline OP
Senior Member
molotov  Offline OP
Senior Member
M

Joined: Apr 2006
Posts: 329
Hey, recently I started messing arround with the physics car script that comes with gamestudio. I'm trying to create a funny race game with power-ups. One of the power-ups is a temporaly increase in scale. I've already created the code that makes the wheels and car change in scale. But the problem is that the wheels stay at the same postion from the car as it was in the original scale. My question is, how do I change the physics joins between car and wheels in real-time based on the scale of the car. Hope someone can help me, much appreciated.

Re: gs physics: scale adjustment [Re: molotov] #280429
07/22/09 15:49
07/22/09 15:49
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline
Senior Member
MPQ  Offline
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
you have to unregister the physics for your wheels when changing scale and after that register new! I think this is the only way.


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com
Re: gs physics: scale adjustment [Re: MPQ] #280453
07/22/09 17:33
07/22/09 17:33
Joined: Apr 2006
Posts: 329
M
molotov Offline OP
Senior Member
molotov  Offline OP
Senior Member
M

Joined: Apr 2006
Posts: 329
So if I understand correctly the easy way is to remove the old wheels and just ent_create new ones, every time I change the scale.

Re: gs physics: scale adjustment [Re: molotov] #280458
07/22/09 18:15
07/22/09 18:15
Joined: Nov 2008
Posts: 354
saeculum II
MPQ Offline
Senior Member
MPQ  Offline
Senior Member

Joined: Nov 2008
Posts: 354
saeculum II
yes I would do it this way

- add constraint
- scale wheel
- if wheel scaled remove old constraint and add new constraint afterwards

(not tested;))


new project in early stage...

Intel Xeon X3450 2,66GHz | Mushkin 8 Gib | Zotac GTS250 + 7300LE | A8.3 com

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