Crystal Space
Welcome, Guest. Please login or register.
December 22, 2014, 11:02:04 pm

Login with username, password and session length
Search:     Advanced search
9032 Posts in 2046 Topics by 9306 Members
Latest Member: Marjoriechapp
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CEL Discussion
| | |-+  How to change the camera's position?
« previous next »
Pages: [1] Print
Author Topic: How to change the camera's position?  (Read 2926 times)
Hilake
Newbie
*
Posts: 27


View Profile Email
« on: August 22, 2005, 08:21:35 am »

Hi!

I use cel. But I found the camera's position always point at the entity's foot. I want to make it point to the entity's waist. so I use this code:
Code:
pccamera->SetSpringParameters (3.5f, 0.25f, 1.01f);
But when i want to the entity forward the camera's positon will change to the default one. How set the camera and not change it when the entity move?
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: August 22, 2005, 08:23:40 am »

Hi!

I use cel. But I found the camera's position always point at the entity's foot. I want to make it point to the entity's waist. so I use this code:
Code:
pccamera->SetSpringParameters (3.5f, 0.25f, 1.01f);
But when i want to the entity forward the camera's positon will change to the default one. How set the camera and not change it when the entity move?

Did you try using SetThirdPersonOffset? With the second function you can control where the camera will be relative to the entity.

Greetings,
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 6.563 seconds with 16 queries.