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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 12,885 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
PH_Slider as a car shock absorber? #64639
02/19/06 01:55
02/19/06 01:55
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
I am studying this constraint and wondered if this is a good option. My only concern is if it is added to the car chassis, how will the slider constraint act as a shock based on its sliding velocities vrs. the cars mass. The cars mass may not impact it at all, but if anyone knows this, I would appreciate your thoughts.

Thanks

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: PH_Slider as a car shock absorber? [Re: raiden] #64640
02/19/06 09:12
02/19/06 09:12
Joined: Sep 2003
Posts: 281
Arkansas\USA
raiden Offline OP
Member
raiden  Offline OP
Member

Joined: Sep 2003
Posts: 281
Arkansas\USA
I found an easier solution, Marco added the 6th parameter in phcon_setparams2 to be like a shock absorber:
phcon_setparams2(frw_id,vector(-30,30,0),nullvector,vector(80000,200,0));


I found this setting to be nice and bouncy.

Thanks Marco

-raiden


"It doesn't matter if we win or lose, it's how we make the game."
--------------------
Links: 3DGS for Dummies
Re: PH_Slider as a car shock absorber? [Re: raiden] #64641
02/21/06 21:40
02/21/06 21:40
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
A PH_WHEEL basically is a PH_SLIDER with a secondary axis. As raiden pointed out you can adjust the bounciness for PH_WHEELs. You could also add another PH_SLIDER on top of it, but then things might get way too elastic.

Re: PH_Slider as a car shock absorber? [Re: Marco_Grubert] #64642
02/27/06 15:26
02/27/06 15:26
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline
Serious User
indiGLOW  Offline
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
While this sounds exactly what I am trying to do, I can't seem to avoid the wheels falling of my car! Do you have to reposition the wheel via vec_set every frame or is the wheel position meant to be given by the contraint?

I have a car chasis with standard box physics. 4 bones where the suspension system would meet the wheel, which I am using for position of each wheel as well as suspension animation.

So any advice or example code on setting up a wheel and axle would be really helpful to me, as my wheels just drop off. Thanks and sorry for hijacking the thread.


The Art of Conversation is dead : Discuss
Re: PH_Slider as a car shock absorber? [Re: indiGLOW] #64643
02/27/06 17:15
02/27/06 17:15
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline
Serious User
indiGLOW  Offline
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
So I opened the plCar01.wdl and figured it out, sorry


The Art of Conversation is dead : Discuss

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