collision depends on frame rate

Found a bug? Report it here.

Moderator: PPS-Leaders

Post Reply
User avatar
Nowic
Thanathon, God of the lower Planes
Posts: 186
Joined: Tue Oct 03, 2006 7:53 pm
Location: Zürich
Contact:

collision depends on frame rate

Post by Nowic » Thu Feb 22, 2007 7:25 pm

The collision should not depend on the frame rate.

Example:
Every time Amarok shows the name of the next track (with OSD), the number of frames gets very low and all NPCs fall through the floor. I looks funny but... :)

You can use it for cheating too. With a low frame rate (or a frame drop) you can walk through the balustrade and visit the lower floors of the space station.

Edit: ->> https://dev.orxonox.net/ticket/204
"I've always lived cheaply. I live like a student, basically. And I like that because it means that money is not telling me what to do. I can do what I think is important for me to do. It freed me to do what seemed worth doing." -- Richard Stallman

User avatar
x3n
Baron Vladimir Harkonnen
Posts: 810
Joined: Mon Oct 30, 2006 5:40 pm
Contact:

Post by x3n » Thu Feb 22, 2007 8:03 pm

To fix this, the collision engine must recognize whether there was a collision between the two locations of the player in two frames or not, because as it is now, the collision engine just checks if the location is valid.


example:

Code: Select all

Frame 1:
....P....[     ].........

Frame 2:
high fps: .........[  P  ].........  collision detected
low fps:  .........[     ]....P....  no collision
Or let's just say:
+1 feature: tunneling effect :P
Last edited by x3n on Fri Feb 23, 2007 8:22 pm, edited 1 time in total.

User avatar
beni
Baron Vladimir Harkonnen
Posts: 949
Joined: Tue Oct 03, 2006 9:15 am
Location: Zurich
Contact:

Post by beni » Thu Feb 22, 2007 8:30 pm

It's a feature again I see: It's the amarok tunneling effect. Very interesting!
"I'm Commander Shepard and this is my favorite forum on the internet."

User avatar
Nowic
Thanathon, God of the lower Planes
Posts: 186
Joined: Tue Oct 03, 2006 7:53 pm
Location: Zürich
Contact:

Post by Nowic » Thu Feb 22, 2007 9:36 pm

Amarok tunneling effect! Great! *lol*
"I've always lived cheaply. I live like a student, basically. And I like that because it means that money is not telling me what to do. I can do what I think is important for me to do. It freed me to do what seemed worth doing." -- Richard Stallman

User avatar
patrick
Baron Vladimir Harkonnen
Posts: 350
Joined: Mon Oct 02, 2006 6:03 pm
Location: Bern

Post by patrick » Fri Feb 23, 2007 9:42 am

I created a ticket for this yesterday (the mainloop ticket) https://dev.orxonox.net/ticket/204. Suggestions, ideas?

claudio
Human Space Navy Private
Posts: 4
Joined: Thu Oct 19, 2006 5:32 pm

Post by claudio » Fri Feb 23, 2007 5:56 pm

I'm working on a solution as suggested by x3n. I think it's the fastest way to get rid of that 'feature'.
I like your ticket, Patrick.
However, after thinking a lot on the redesign of the main loop, I doubt, whether we should already implement it in the cleanup branch. If I worked on the reimplementation of the main loop, I'd probably rather create further bugs before anything became better.
Thus, couldn't the PPS assistants suggest this ticket as a PPS-Project?

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests