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,449 guests, and 6 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
Entities going mad !!!! #150083
08/24/07 21:55
08/24/07 21:55
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
Hi,

I have some problems with the physics engine.
I have 4 wheels that are about an inch in mid-air, and as soon as they touch the ground, they sink in and start to do weird things.

I can't figure out what's causing them to go berserk...

EDIT: all the ph_ and phent_ setting:

Code:

ph_setgravity (vector(0,0,-100));

(the following are set in actions)
phent_settype (me,PH_RIGID,PH_CYLINDER);
phent_setmass (my, 3, PH_SPHERE);
phent_setfriction (my, 100);
phent_setdamping (my, 40, 40);
phent_setelasticity (my, 50, 20);





2 screenshots:

BEFORE...


AFTER...


Last edited by Devious_Duck; 08/24/07 23:03.
Re: Entities going mad !!!! [Re: Devious_Duck] #150084
08/24/07 22:55
08/24/07 22:55
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
List all your ph_ and phent_ settings. To get wheels to work it is my understanding you have to tweak corrections and such to make it work. Others would know better than I (don't work with wheels) but listing your settings would be a good first step.

Re: Entities going mad !!!! [Re: fastlane69] #150085
08/24/07 23:03
08/24/07 23:03
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
I edited my first post and added the ph_ and phent_ settings


Thrones of Ragnarok -Under Construction
Re: Entities going mad !!!! [Re: Devious_Duck] #150086
08/24/07 23:10
08/24/07 23:10
Joined: Mar 2003
Posts: 5,377
USofA
fastlane69 Offline
Senior Expert
fastlane69  Offline
Senior Expert

Joined: Mar 2003
Posts: 5,377
USofA
ph_cylinder is notoriously buggy and not recommended for use by several forum members who have triedc to get it working.

Switch to ph_sphere and see if that helps.

Re: Entities going mad !!!! [Re: fastlane69] #150087
08/24/07 23:32
08/24/07 23:32
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
If only i knew...

Thanks! It solved everything !


Thrones of Ragnarok -Under Construction
Re: Entities going mad !!!! [Re: Devious_Duck] #150088
08/25/07 17:31
08/25/07 17:31
Joined: Jan 2007
Posts: 1,619
Germany
Scorpion Offline
Serious User
Happy Birthday Scorpion  Offline
Serious User

Joined: Jan 2007
Posts: 1,619
Germany
how did you solved it? you got ph_cylinder to work?
everyone here wants to know it

Re: Entities going mad !!!! [Re: Scorpion] #150089
08/25/07 20:11
08/25/07 20:11
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
No I just used PH_SPHERE instead, but surely ill play around with PH_CYLINDER since that is what i need. Is there anything i should know before messing with PH_CYLINDER?

EDIT: Instead of creating another topic, I would like to know if its possible to rotate a constraint itself? <------- nevermind, I found out by myself: I can use phcon_getpostion().

EDIT2: How am i suppose to know exactly where to place my anchor points ?

Last edited by Devious_Duck; 08/25/07 21:40.

Thrones of Ragnarok -Under Construction
Re: Entities going mad !!!! [Re: Devious_Duck] #150090
08/26/07 20:14
08/26/07 20:14
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
anyone ?


Thrones of Ragnarok -Under Construction
Re: Entities going mad !!!! [Re: Devious_Duck] #150091
08/26/07 21:42
08/26/07 21:42
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline
Member
Alessandro  Offline
Member

Joined: Sep 2004
Posts: 130
Italy
Just for information: I think (my opinion) cylinder is a mess in several physic engines.
For example, GTA uses spheres to define the tires, not cylinders!
I don't know if they do this for performance reasons or for other problems (bugs in several physic engine?)... however...

Re: Entities going mad !!!! [Re: Alessandro] #150092
08/26/07 22:18
08/26/07 22:18
Joined: Aug 2007
Posts: 11
Quebec, Canada
Devious_Duck Offline OP
Newbie
Devious_Duck  Offline OP
Newbie

Joined: Aug 2007
Posts: 11
Quebec, Canada
I don't know if cylinders are renown to be buggy in several engines, but if it is... Houston, we have a problem.

I'll go take a quick look to see if it's a known bug elsewhere.


Thrones of Ragnarok -Under Construction

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