Crystal Space
Welcome, Guest. Please login or register.
August 22, 2014, 09:04:16 am

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8332 Members
Latest Member: Msarlycar0303
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  Get camera position integer
« previous next »
Pages: [1] Print
Author Topic: Get camera position integer  (Read 1727 times)
[SOM]Roberto
Jr. Member
**
Posts: 79


View Profile Email
« on: March 15, 2006, 10:43:16 pm »

Hi!

I want to camera position. I know get origin method /csVector3& v_coord = view->GetCamera()->GetTransform ().GetOrigin();/, but this is a vector no integer variable. for example: How can I can query the Z actually camera position number?

I using CS jan 2006 version in windows. Thanks who help me.
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: March 15, 2006, 10:46:01 pm »

Hi!

I want to camera position. I know get origin method /csVector3& v_coord = view->GetCamera()->GetTransform ().GetOrigin();/, but this is a vector no integer variable. for example: How can I can query the Z actually camera position number?

I using CS jan 2006 version in windows. Thanks who help me.

From that vector you can get the z value like this:

v_coord.z

Greetings,
Logged
[SOM]Roberto
Jr. Member
**
Posts: 79


View Profile Email
« Reply #2 on: March 15, 2006, 11:19:18 pm »

Thank u. Wink
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 3.186 seconds with 15 queries.