Crystal Space
Welcome, Guest. Please login or register.
November 18, 2017, 12:02:01 am

Login with username, password and session length
Search:     Advanced search
9081 Posts in 2051 Topics by 80352 Members
Latest Member: Aebhhvfyx32
* 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 1835 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!!
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().
For the camera, it would be iPcCamera::GetCamera() then iCamera::GetTransform ().GetOrigin ()
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.461 seconds with 15 queries.