Quick Question
Calling all Vizards,
I am trying to add the ability to mount and dismount a vehicle (FLT) in my scene. When dismounted the user should be able to walk around the environment as normal. Problem is when I only seem to able to perform this action once, maybe I am trying to do this the wrong way :o. Here is a snippet of code to illustrate the way I am trying to achieve this. Code:
import vizcam Thanks for any help in advance, Regards, Nige |
Are you trying to toggle between the orbit camera and normal view when joystick button 3 is pressed? If so, you will need to modify your code to look something like this:
Code:
import vizcam |
RE: Right answer, wrong question!
Thanks for the suggestion, it works really well. Unfortunately I posted the question when I was half asleep, so I apologies for the fact that I will now have to ask you a revised question:o. I actually need to be able to dismount the the truck and move around. I control the truck with a joypad with the head ori of the view set to mouselook and envisage controlling the view in the same way when I dismount. Here's the joypad script I'm using to drive the FLT:
Code:
#Use joystick to control FLT navigation Thanks for your patience,:o Nige |
I'm not exactly clear on what you are trying to accomplish. It seems like you just need to disable the UpdateMovement function while you are dismounted from the truck, and enable it when you are mounted. Let me know if I misunderstood your question.
|
Hi fashizzo,
Yes, you are quite right, I need to disable the UpdateFLTMovement() function whilst dismounted from the truck. :o However, I now have 2 functions, one for moving the truck, one for moving the view, but am unable (in my sleep deprived state :eek:) to switch toggle between them. I have tried all manner of enable and disable combinations - but to no avail. I feel that (once again) I am missing something really simple :rolleyes: All help gratefully received :D |
RE:Ignore me!
Please disregard the last post :o - I have had some sleep and my brain has started working again :)
I just put the two functions in a timer and just call or kill whichever one I want! :rolleyes: Cheers Nige |
All times are GMT -7. The time now is 11:10 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC