Programming & Scripting

View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

  Beginner BeginnerMember since: 12.04.2012, 13:43Posts: 49 Likes: 0
 

 Post Topic: How to make Third Person Camera as Physic Entity
PostPosted 12.06.2012, 16:37 
Hi,

As i said on subject, i want to make my camera as physic entity which means it can not pass inside walls, it must stop rotation when it collide with objects.

Why am i asking, in third person mode, sometimes model is going inside of object i do not want that.

You can say that in goc mode, there is already some ray hit property which makes camera closer to the player when it hits something between player and camera. However, it is not good and there are still problems within that, eventhough i make a lot of changes(clipping,position) in code where it makes ray hit between camera and player.

Or If you have any different suggestion to me how i can achieve this, i will be appreciated.

If you did not understand the problem, this can be because of my english, so you can look pictures
Thanks
Attachments:

inside.png
normal.png