Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 06 Jul 2009
Offline Last Active Oct 20 2016 07:38 PM

Posts I've Made

In Topic: How good are SDL event timestamps?

07 October 2016 - 09:06 AM

i use "asynchronous" in two senses:


1. the input thread is waiting on events (SDL_WaitEvent) instead of pumping at a fixed frequency

2. the input thread sends commands to the renderer via an asynchronous channel (since I"m using OpenGL i guess this is kind of like simulating multi-threaded rendering via command buffers)


#2. ensure that when the renderer is waiting on VSync, input processing still happens. #1. maybe isn't necessary if events received from SDL are already properly timestamped

In Topic: Collision detection

13 June 2016 - 05:47 AM

if you have line triangle you can get line prism by testing the line against each of the 8 triangles making up the prism (1 for each end, 2 for each side)

In Topic: Contact tangents

03 January 2016 - 11:34 PM

Thanks for the pointers, I was going to modify my post to mention that I do use GJK already for distance and penetration calculation, but it does things pretty minimally so it usually returns a point/face as nearest features in a resting scenario.

In Topic: Contact tangents

03 January 2016 - 08:27 PM

So it turned out I was looking at the Catto "Iterative Dynamics" paper, which is a bit more advanced than this scenario, and actually what I had been using before was Catto's GDC2006 powerpoint, which I had previously compared to Bender and Schmitt and found to be essentially the same, although Catto goes into picking points on boxes and some other tricks such as a 'bias' velocity.


Then I would say it's time to add more contact points, but I have general meshes, not only boxes. Does anyone have any pointers for finding contact points on a general surface? I'm guessing the brute force approach is just searching along the surface normal and comparing dot products.

In Topic: Contact tangents

14 December 2015 - 08:21 PM

I'd say do option 1. The tangent vector is for applying contact friction, so surely it has to be calculated from the relative velocities of the contact points? I had a read through the paper and it seems to me that the tangent vector is described in the middle of page 4, as this.

That's quite a nice, readable paper :-)


That is the tangent used for collision response, the tangent for contacts is described on page 6.