PathCamera + Object Selection
by Kuju Manila · in Torque Game Engine · 05/27/2007 (7:29 pm) · 3 replies
I'm just wondering if anyone has attempted a similar behavior like this: The PathCamera as the current control object with object selection enabled.
As you might have guessed, I'm building some sort of a rail-type game ala TimeCrisis, Virtua Cop, etc. Has anyone done similar to this?
My code so far works fine on having the path camera move and make it as my view, and partially made the object selection working. My object selection code works flawlessly on a fixed, non-Pathed Camera. However, plugging it in on a PathCamera produce some oddities on the selection. While moving, there are targets around to shoot, but when I click on them, most (but not all) of it are not selected -- even if they are right at your face.
Can anyone tell me what might be wrong?
As you might have guessed, I'm building some sort of a rail-type game ala TimeCrisis, Virtua Cop, etc. Has anyone done similar to this?
My code so far works fine on having the path camera move and make it as my view, and partially made the object selection working. My object selection code works flawlessly on a fixed, non-Pathed Camera. However, plugging it in on a PathCamera produce some oddities on the selection. While moving, there are targets around to shoot, but when I click on them, most (but not all) of it are not selected -- even if they are right at your face.
Can anyone tell me what might be wrong?
#2
05/30/2007 (12:21 am)
Ok. Slowing down and making my mark on the converted 3d coordinate, made me realize that whenever I click, the raycast is way off from the location where I clicked on the screen. Why is this? Does the raycast consider the velocity? ( I checked the engine code and I didnt find anything the gets the elapsed time for the click ).
#3
05/31/2007 (8:26 pm)
Bump. Any clue where to look at? I really tried looking at the TSCtrl and the Camera engine files and still can't see what causes it. I really don't have an idea up to now.
Kuju Manila
Default Studio Name
I found out that the PathCamera and mouse clicking works together--but not properly. I observed that the clicks register better when the camera is not in motion. However, it rarely registers when the camera is moving. What causes it?
- Is it the raycast?
- Is the interpolation code for movement affects it?
- Is it the rendering?
Need some guidance thanks.