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,528 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
Spheres hurled off of convex map entity edges? #87073
08/22/06 15:35
08/22/06 15:35
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
I have here a sphere that seems to gain an awful lot of velocity when hitting a convex portion of a map entity -- if I roll it off of a ledge, it just pops off into space.

I've checked out the "Events and Physics" section of the manual; tried using various masses (larger spheres seem to be affected more than smaller ones); played with ph_iterations (0 seems to cause the most problems, but that may be my imagination); mucked with ph_setcorrections (small values mitigate this, but that causes other problems); and so forth, but to no avail. Is there a solution to this?

Thanks.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Spheres hurled off of convex map entity edges? [Re: Ichiro] #87074
08/22/06 17:08
08/22/06 17:08
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA


In fact, here's a quick video (WMV, 1MB) of the thing in action. The sphere moves towards the block slowly, but when it comes into contact with the edge, it flies off.

The same thing will happen if the sphere starts on top of the block and rolls off of it.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Spheres hurled off of convex map entity edges? [Re: Ichiro] #87075
08/25/06 20:38
08/25/06 20:38
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
Mmmm, strange. Could you post or pm some of your physics settings, I could try to reproduce it. I'm not having such behaviour, so ...

Not sure if you are already using it, I think so, but how about adding this line :

Code:
 phent_setmaxspeed( my, 100, 100);



Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software
Re: Spheres hurled off of convex map entity edges? [Re: PHeMoX] #87076
08/26/06 02:37
08/26/06 02:37
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Thanks. Having played around a little more, I think the effect is most prominent when I change the object's scale_x/y/z (although I'm doing this before I turn physics on for that object). It seems like that could make a difference, but I haven't seen any documentation to that effect(?)


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Spheres hurled off of convex map entity edges? [Re: Ichiro] #87077
08/31/06 15:27
08/31/06 15:27
Joined: Mar 2006
Posts: 35
Sao Paulo, Brazil
EdMercer Offline
Newbie
EdMercer  Offline
Newbie

Joined: Mar 2006
Posts: 35
Sao Paulo, Brazil
Just trying to equate it to a behaviour I've observed before in my physics work: Is the block a real level block or a model ?

The fact is, some intern built a model here with several inverted faces (their normals facing the wrong way) and when a physics entity hit it it was accelerated instead of bouncing off of it. The intern had the nerve of suggesting we use it as a "nitro" feature in a racing game... I almost beheaded him... But I digress.

Re: Spheres hurled off of convex map entity edges? [Re: EdMercer] #87078
08/31/06 20:22
08/31/06 20:22
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
That's pretty funny. :)

Naw; the blocks are genuine WMBs. The effect is really noticeable when (for example) I have a ball rolling across two tables placed side-by-side. It really gets angry when it hits the interface between the tables.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Spheres hurled off of convex map entity edges? [Re: Ichiro] #87079
09/01/06 16:45
09/01/06 16:45
Joined: Mar 2006
Posts: 35
Sao Paulo, Brazil
EdMercer Offline
Newbie
EdMercer  Offline
Newbie

Joined: Mar 2006
Posts: 35
Sao Paulo, Brazil
Damn. I'll try to reproduce the effect here (though we have very little, if any, level blocks in our map) and get back to you on that.

Re: Spheres hurled off of convex map entity edges? [Re: EdMercer] #87080
09/01/06 18:21
09/01/06 18:21
Joined: Sep 2002
Posts: 8,177
Netherlands
PHeMoX Offline
Senior Expert
PHeMoX  Offline
Senior Expert

Joined: Sep 2002
Posts: 8,177
Netherlands
I haven't succeeded in reproducing this effect either. I haven't added a scale instruction yet, so this will be the next thing to do. I'm planning to use physics in my game, so I need to know if it's 'save' to use blocks too, and if it's not, then I want to find out how to reduce this weird effect to zero,

Cheers


PHeMoX, Innervision Software (c) 1995-2008

For more info visit: Innervision Software

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