Click here to Skip to main content
15,913,669 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Do you hate human interaction too? Pin
Kornfeld Eliyahu Peter15-Feb-15 23:08
professionalKornfeld Eliyahu Peter15-Feb-15 23:08 
GeneralRe: Do you hate human interaction too? Pin
BillWoodruff15-Feb-15 23:25
professionalBillWoodruff15-Feb-15 23:25 
JokeRe: Do you hate human interaction too? Pin
Kornfeld Eliyahu Peter15-Feb-15 23:34
professionalKornfeld Eliyahu Peter15-Feb-15 23:34 
GeneralRe: Do you hate human interaction too? Pin
BillWoodruff16-Feb-15 0:06
professionalBillWoodruff16-Feb-15 0:06 
GeneralRe: Do you hate human interaction too? Pin
PhilLenoir17-Feb-15 4:42
professionalPhilLenoir17-Feb-15 4:42 
JokeRe: Do you hate human interaction too? Pin
Johnny J.15-Feb-15 23:29
professionalJohnny J.15-Feb-15 23:29 
GeneralRe: Do you hate human interaction too? Pin
Mike Hankey16-Feb-15 0:09
mveMike Hankey16-Feb-15 0:09 
GeneralSinking a floater! Pin
_Maxxx_15-Feb-15 15:46
professional_Maxxx_15-Feb-15 15:46 
Had an annoying bug on the weekend.

Using C++ (which isn't my best language) and a rather awesome physics engine (Box2d) I was experiencing a strange situation where a physics object would seemingly randomly bounce madly around - shooting off into the air.

(very) long session followed. Could not track it down.

Even posted on their support site, and posted a video [^]in the hope someone could help.

Turns out that, in some code what I wrote, I implemented a form of rotational damping - which essentially stops objects rotating too quickly by calculating the desired angle, and allowing it to rotate there over several steps. (used to keep things reasonably upright)

Turns out that, under some circumstances the current angle was returning something like 0.0000002 radians. Which isn't equal to the desired angle (0) (even though it started at 0 degrees and has no forces acting on it) so I rotate the object - just a tiny wee bit!

But if that happens when it is touching the surface, it is forced to rotate through the surface!

This causes the engine to move it rapidly away, as it (I think) assumes a collision of some magnitude has occurred.

Bloody floats!
PooperPig - Coming Soon

GeneralRe: Sinking a floater! Pin
Mycroft Holmes15-Feb-15 16:25
professionalMycroft Holmes15-Feb-15 16:25 
GeneralRe: Sinking a floater! Pin
Garth J Lancaster15-Feb-15 20:32
professionalGarth J Lancaster15-Feb-15 20:32 
GeneralRe: Sinking a floater! Pin
_Maxxx_16-Feb-15 0:12
professional_Maxxx_16-Feb-15 0:12 
GeneralRe: Sinking a floater! Pin
Amarnath S15-Feb-15 18:11
professionalAmarnath S15-Feb-15 18:11 
GeneralRe: Sinking a floater! Pin
_Maxxx_15-Feb-15 23:48
professional_Maxxx_15-Feb-15 23:48 
JokeRe: Sinking a floater! Pin
Daniel Pfeffer16-Feb-15 3:39
professionalDaniel Pfeffer16-Feb-15 3:39 
GeneralRe: Sinking a floater! Pin
Anthony Mushrow15-Feb-15 22:58
professionalAnthony Mushrow15-Feb-15 22:58 
GeneralRe: Sinking a floater! Pin
_Maxxx_15-Feb-15 23:45
professional_Maxxx_15-Feb-15 23:45 
GeneralRe: Sinking a floater! Pin
Mike Hankey16-Feb-15 0:12
mveMike Hankey16-Feb-15 0:12 
GeneralRe: Sinking a floater! Pin
_Maxxx_16-Feb-15 0:16
professional_Maxxx_16-Feb-15 0:16 
GeneralRe: Sinking a floater! Pin
JimmyRopes16-Feb-15 0:56
professionalJimmyRopes16-Feb-15 0:56 
GeneralRe: Sinking a floater! Pin
Mike Hankey16-Feb-15 1:25
mveMike Hankey16-Feb-15 1:25 
GeneralRe: Sinking a floater! Pin
JimmyRopes16-Feb-15 2:00
professionalJimmyRopes16-Feb-15 2:00 
GeneralRe: Sinking a floater! Pin
Mike Hankey16-Feb-15 2:03
mveMike Hankey16-Feb-15 2:03 
GeneralRe: Sinking a floater! Pin
JimmyRopes16-Feb-15 2:07
professionalJimmyRopes16-Feb-15 2:07 
GeneralRe: Sinking a floater! Pin
Mike Hankey16-Feb-15 2:13
mveMike Hankey16-Feb-15 2:13 
JokeThis is my church, this is where I heal my hurts... Pin
Sander Rossel15-Feb-15 11:09
professionalSander Rossel15-Feb-15 11:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.