Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, kzhao), 642 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Spheres hurled off of map entity edges in Physics? #126759
04/27/07 02:53
04/27/07 02:53
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Hello. I've noticed that when a PH_SPHERE comes into contact with a "sharp" edge on a map entity, the physics engine will cause it to "pop" away, giving it a large amount of velocity. I asked about this in a Physics thread about 6 months ago, and included a video (WMV, 1MB) demonstrating this, but never came up with a solution.

Do you have any pointers on how I can eliminate this behavior? (A6 Pro 6.40.5.)


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Spheres hurled off of map entity edges in Phys [Re: Ichiro] #126760
04/27/07 07:53
04/27/07 07:53
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I have no ready solution, but I suppose this behavior is caused by a too-high elasticity and a too-low momentum of inertia. I would increase the sphere's mass, increase gravity, and experiment with friction, elasticity, and damping settings.

Re: Spheres hurled off of map entity edges in Phys [Re: jcl] #126761
04/28/07 16:26
04/28/07 16:26
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Gotcha; I'll keep tweaking, thanks.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Spheres hurled off of map entity edges in Phys [Re: Ichiro] #126762
04/28/07 22:09
04/28/07 22:09
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
i think its a bit like a soccerball going over a curb, the middle of the ball is right above the line where it hits the curb, and since its rolling, the rolling surface hits the corner with a little harder of impact than just the movement speed, causing it to "jump", and of course a lot of physics engine do have a bit more drastic reactions than real life too

Re: Spheres hurled off of map entity edges in Phys [Re: lostclimate] #126763
05/02/07 02:37
05/02/07 02:37
Joined: Aug 2002
Posts: 681
Massachusetts, USA
Ichiro Offline OP
User
Ichiro  Offline OP
User

Joined: Aug 2002
Posts: 681
Massachusetts, USA
Yeah, I thought so at first, but it eventually it becomes ridiculous -- I've had a ball gently roll towards a tiny lip and then fly off into space.

Oh well.


Dejobaan Games - Bringing you quality video games for over 75 years.
Re: Spheres hurled off of map entity edges in Phys [Re: Ichiro] #126764
05/09/07 11:26
05/09/07 11:26
Joined: Apr 2007
Posts: 29
R
Raymaker Offline
Newbie
Raymaker  Offline
Newbie
R

Joined: Apr 2007
Posts: 29
Dont blame me if i am wrong, because i'm only 14, but i think that is the question of the vary vary small surface that your sphere is hitting. I mean that the presure is too big because of this law :

preasure = force/surface area
If you understand that the surface is vary small lets say 0.00001;
It is not vary important how strong is the force of the sphere when it's devided by a 0.0000001 it becomes 10000000 greater and the sphere gets pushed away with that amount of force according to 3th Newton law;

Re: Spheres hurled off of map entity edges in Phys [Re: Raymaker] #126765
05/09/07 12:43
05/09/07 12:43
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
mmh you're really only 14

the pressure the ball is pushed away with get's multiplied with the surface again to get the resulting force on the whole ball, so the surface area has practically nothing to do with it.

Re: Spheres hurled off of map entity edges in Phys [Re: Joey] #126766
05/09/07 16:52
05/09/07 16:52
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
and since in real life most corners dont have a exactly completely straight 90 degree edge, we dont see this very much yay its figured out! but your still kinda screwed by it, you'll just have to round out your corners or take the high jump

Re: Spheres hurled off of map entity edges in Phys [Re: lostclimate] #126767
05/10/07 13:18
05/10/07 13:18
Joined: Apr 2007
Posts: 29
R
Raymaker Offline
Newbie
Raymaker  Offline
Newbie
R

Joined: Apr 2007
Posts: 29
IF there is nothing to do with the surface area why don't you make a hole in the wood for example with a cube. You should do it with something sharp because it generates more preasure.... whatever it is. The only solution i see is like the lostclimate said to round the corners :-) maybe i'm wrong but thats what i think it is; ;-)

Re: Spheres hurled off of map entity edges in Phys [Re: Raymaker] #126768
05/10/07 14:00
05/10/07 14:00
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
it was real world physics i was talking about, leaving out side effects such as friction, inertia and many others. if an implementation would require rounding edges it would have some kind of fault.

Page 1 of 2 1 2

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | 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