Crystal Space
Welcome, Guest. Please login or register.
October 23, 2014, 06:28:37 pm

Login with username, password and session length
Search:     Advanced search
9010 Posts in 2044 Topics by 8800 Members
Latest Member: Xxbobo
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  How to get the player's position and camera's position in walktut?
« previous next »
Pages: [1] Print
Author Topic: How to get the player's position and camera's position in walktut?  (Read 1424 times)
Jr. Member
**
Posts: 81


View Profile Email
« on: December 11, 2008, 09:33:57 am »

     Now i have run "walktut"  in cel successful.
    The problem is that if i want to get the player's position and camera's position, i don't know how to do it ?!  Please help me , thank you!!
Logged
Vincent
Full Member
***
Posts: 191


View Profile WWW
« Reply #1 on: December 19, 2008, 11:19:00 pm »

Generally speaking, you need to use the appropriate method from the propertyclass used
for the camera and/or actor movement. In the case of walktut, it's iPcLinearMovement,
and you'd need to use GetPosition() or GetFullPosition().
http://www.crystalspace3d.org/cel/docs/online/api/structiPcLinearMovement.html
For the camera, it would be iPcCamera::GetCamera() then iCamera::GetTransform ().GetOrigin ()
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.197 seconds with 14 queries.