You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
Hi!
I have a indoor scene, with ceilings and walls etc. I want my 3rd person camera to collide with the world, so that the players character always is visible.
I've tried adding a collision response animator to the camera, but it doesn't work very well... the camera passes through walls etc anyway.
Nevermind, I managed to figure out a way to do it.
I draw a line from the cameras eye to target and then do a intersection test to see if there is a collision with the world. If there is, then I set the cameras eye position to that of the collision point. Works pretty well.
if you had two walls between the target and the camera you'd stop on the first one, it makes more sense if you are stuck on the inside rather than the outside
Hi, i think i could glean some help from this topic. In my FPS style game i'm doing i want to basically attach the camera to a character model so that it follows them around in the 3rd person view at a set point behind them.
I've tried adding the camera as child to the character model but that produces some rather bizarre behaviour.... So i think that's not quite right!