How to bind the camera to a object

View previous topic View next topic Go down

How to bind the camera to a object

Post  zyzyandzyzy on Fri Sep 18, 2009 12:16 am

Hello guys,

I'm thinking is there a way to bind camera to a certain object, that means whenever I move the object (change its transform structure) the camera will adjust it's own position/rotation automatically.
Do you know how to do that? thanks a lot.

-zy

zyzyandzyzy

Posts : 11
Join date : 2009-09-18

View user profile

Back to top Go down

Re: How to bind the camera to a object

Post  Francescu on Fri Sep 18, 2009 12:31 am

Check tutorial09 (video + code) for a 3rd person camera bound to a player object.

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: How to bind the camera to a object

Post  zyzyandzyzy on Fri Sep 18, 2009 12:47 am

OK, thanks~
That means I have to adjust the camera's transform by code, right?

zyzyandzyzy

Posts : 11
Join date : 2009-09-18

View user profile

Back to top Go down

Re: How to bind the camera to a object

Post  sio2interactive on Fri Sep 18, 2009 12:47 am

Or check tutorial14 to create a parent child relationship with the matrices...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: How to bind the camera to a object

Post  zyzyandzyzy on Fri Sep 18, 2009 12:49 am

Oh, that's exactly what I want, thanks~

zyzyandzyzy

Posts : 11
Join date : 2009-09-18

View user profile

Back to top Go down

Re: How to bind the camera to a object

Post  sio2interactive on Fri Sep 18, 2009 12:54 am

Yeah but, with that you have no camera collision...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: How to bind the camera to a object

Post  zyzyandzyzy on Fri Sep 18, 2009 12:58 am

It's OK, I'm not using physics system in this game ^_^

zyzyandzyzy

Posts : 11
Join date : 2009-09-18

View user profile

Back to top Go down

Re: How to bind the camera to a object

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum