Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


Member Since 29 May 2013
Offline Last Active Aug 27 2015 10:18 AM

Posts I've Made

In Topic: typeid type_info help please

19 August 2015 - 09:26 AM

Thanks for the help guys,


I think fastcall's recommendation might be easiest and clearest by using a 'type' attribute.

In Topic: How to "smooth" a path

10 July 2015 - 01:17 PM

Thanks for the great reply guys, I will have a look at all your suggestions.



In Topic: rendering images outside of screen

22 May 2015 - 03:15 PM

Oops, Sorry I mean




In Topic: inifinite mass and a jitter problem

23 April 2015 - 11:18 AM

Hi Mike,


Just heard another response from Paul. It appears I now may have to take into account something called "internal edges." He was kind enough to provide a link




I will have another look tonight at what you recommened and these internal edges.



Thanks for the help!



In Topic: inifinite mass and a jitter problem

23 April 2015 - 08:21 AM



I have implemented your algorithm and here's what I found by playing around with the numbers. Note, that this is after commenting out the solvePenetration() method, thereby, transferring all contact resolution to a velocity based system.


1.) The jittering stopped when standing on two inverse mass=0.0f tiles. This was the exact result I was looking for, and by playing with three parameters, the iterations, the "d" and the "k" I was able to come up with a global solution that was stable (of course it's only a 2d game where block stacking is not necessary, therefore, I did not do a full body physics test). But all things considered, it works very well.


2.) A new problem now cropped up. When an AABB with finite mass is "walking" along infinate mass tiles which are placed adjacent to each other (horizontaly), the algo you supplied allows for a little sinking into the existing tile, which means that if I am "walking" right, the bottom right corner of finite mass AABB snags the top left corner of the tile being walked on providing for a rough jerking motion which should be smooth acceleration.


If you have any ideas how to solve this, please let me know. I tried a few hacks, for example turning off gravity when the entity is standing on a mass=0.0f ground, but non of these have proved to adequate for realistic non snagging movement.