FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to bind the camera to a object

3 posters

Go down

How to bind the camera to a object Empty How to bind the camera to a object

Post  zyzyandzyzy 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

Back to top Go down

How to bind the camera to a object Empty Re: How to bind the camera to a object

Post  Francescu 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

Back to top Go down

How to bind the camera to a object Empty Re: How to bind the camera to a object

Post  zyzyandzyzy 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

Back to top Go down

How to bind the camera to a object Empty Re: How to bind the camera to a object

Post  sio2interactive Fri Sep 18, 2009 12:47 am

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

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

http://sio2interactive.com

Back to top Go down

How to bind the camera to a object Empty Re: How to bind the camera to a object

Post  zyzyandzyzy Fri Sep 18, 2009 12:49 am

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

zyzyandzyzy

Posts : 11
Join date : 2009-09-18

Back to top Go down

How to bind the camera to a object Empty Re: How to bind the camera to a object

Post  sio2interactive Fri Sep 18, 2009 12:54 am

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

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

http://sio2interactive.com

Back to top Go down

How to bind the camera to a object Empty Re: How to bind the camera to a object

Post  zyzyandzyzy 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

Back to top Go down

How to bind the camera to a object Empty Re: How to bind the camera to a object

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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