Billboarding and collision detection

Started by Thomas., November 14, 2012, 01:27:46 PM

Previous topic - Next topic

Thomas.

Billboarding is not working if object is used for collision detection.

EgonOlsen

It's actually the other way round...you can't really do collision detection properly on bill boarded objects. That's by design. I'm not sure what you mean with the opposite...do you have some test case for this?

Thomas.

Sorry, I badly formulated sentence. And are you planning fix collision detection on billboarded objects?

EgonOlsen

Actually no. I don't consider this to be a bug. Billboarding happens in camera space but collision detection happens in world space (well, actually it happens in ellipsoid space, but that's another story...) and given the position in world space, it works correct even on bill boarded objects....it's just different from what one might expect.
I had the same issue in my RPG with picking of the flowers. I'm using a collision mesh instead.

Thomas.

The plane with billboarding is collision mesh... I thought that this will not be supported, so I implemented billboarding myself and it works exactly as I want :)

EgonOlsen

#5
Yes, because you don't do it in camera space that way... ;)

Thomas.

Yes, I'm computing camera angles, clear object rotation and rotate object, for my needs it works :)