[B5bug] No 3rd Person Inside Triggers
by Steve Acaster · in Torque 3D Professional · 08/12/2009 (10:40 pm) · 10 replies
Being inside a trigger disables third person view. If you are already in 3rd person, the camera will switch to 1st person, though you can still use "z" to look-around. Move out of a trigger and 3rd person pops back.
Resolved in Release
Resolved in Release
About the author
One Bloke ... In His Bedroom ... Making Indie Games ...
#4
08/17/2009 (6:14 pm)
Logged as THREED-663
#5
09/25/2009 (6:37 pm)
could this be happening because a trigger is a gamebase object and the camera thinks it is extending into a solid object?
#6
in shapebase.cpp
void ShapeBase::getCameraTransform(F32* pos,MatrixF* mat)
change this call to castRay
to this:
which simply adds the TriggerObjectType to the list of exclusions when determining whether or not to extend the camera into a solid object.
09/28/2009 (1:03 pm)
Ok, seems like this may be a fix:in shapebase.cpp
void ShapeBase::getCameraTransform(F32* pos,MatrixF* mat)
change this call to castRay
if (mContainer->castRay(sp, ep,
(0xFFFFFFFF & ~(WaterObjectType |
GameBaseObjectType |
DefaultObjectType)),
&collision) == true)to this:
if (mContainer->castRay(sp, ep,
(0xFFFFFFFF & ~(WaterObjectType |
GameBaseObjectType | TriggerObjectType|
DefaultObjectType)),
&collision) == true)which simply adds the TriggerObjectType to the list of exclusions when determining whether or not to extend the camera into a solid object.
#7
09/28/2009 (4:00 pm)
Yep, that certainly appears to work fine! Nice one.
#8
09/29/2009 (5:24 pm)
Is this fixed in T3d 1.0? I'm having other problems with triggers as well. I don't know what the problem is yet, but my resource 'bf2 style capture the flag' doesn't work correctly. I'm wondering if it's me or T3D.
#9
Also, forcing 3rd person inside a trigger appears resolved in 1.0.
09/29/2009 (5:42 pm)
mb, are you sure you just haven't forgotten to name the trigger datablocks correctly or exec the files - cos I've messed up on both of those things before.Also, forcing 3rd person inside a trigger appears resolved in 1.0.
#10
03/22/2010 (3:54 am)
is there any fix for 1.0.1 ?
Associate Fyodor -bank- Osokin
Dedicated Logic
Looks like camera queries TriggerObjects for collision check, which should be ignored.