Slick Forums

Discuss the Slick 2D Library
It is currently Sat May 25, 2013 1:49 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon May 07, 2012 8:01 pm 
Offline

Joined: Mon May 07, 2012 7:47 pm
Posts: 2
Because I started learning lwjgl and slick I made a small game with framerate independend moving object (entities). The game calculates a delta (time between frames) and uses it in the updated position of an object (lhttp://www.lwjgl.org/wiki/index.php?title=LWJGL_Basics_4_(Timing)). When an entitiy is going fast or if the delta gets bigger (on slower computers or when the game will get bigger) the object will seem to "teleport" while trying to keep the same speed. I understand this will happen, and I don't think its a problem. The problem is in the teleporting itself. When an object "teleports" it will crash into other objects or even 'jump' behind them, which ruins my collision detection.

My collision detecting calculates if the objects (Rectangles) are interfering with eachother. When an object 'teleports' over an object in 1 frame, it will never interfere.

What is the best solution to solve this problem?

Thank you,
Tycho


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group