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
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
twitching after objects stopped #174393
12/22/07 19:51
12/22/07 19:51
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline OP
Serious User
ulf  Offline OP
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
hey there,

i just played around with the ode physics in the latest a7 version. sometimes when i stack some more objects or drop them near to the next - some objects start to twitch around... or shake around.
they just dont stand still, like they should! instead it looks like they try to find an optimal position. but never find it.

i have already looked at the FAQ and did what stood there, but that doesnt seem to solve the issue. also all physics demos here seem to have the same problem.
now are there any strategies to avoid the above problems? i know newton does not have this kind of problem. maybe its ode specific...

would be nice to share the knowledge or discuss how to get rid of this problem.

greetings!

Re: twitching after objects stopped [Re: ulf] #174394
01/24/08 05:45
01/24/08 05:45
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
The collision algorithm of the ODE physics engine is not as accurate as it could be. It checks every frame to see whether the physics object has penetrated a barrier. If it has, then it pushes the physics object away from the wall/floor/object/whatever. What's happening with your "bouncing objects" is a direct result of this. I would recommend setting ph_fps_max_lock to whatever FPS you're getting (or at least an average, if your FPS isn't constant), and this probably should minimize your twitching.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: twitching after objects stopped [Re: MrCode] #174395
02/04/08 14:34
02/04/08 14:34
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Thanks. I had the same problem and only could get them to stop spastic movement after setting object mass to zero. Will try your solution.


smile

Moderated by  HeelX, Spirit 

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