Game Development Community

CameraRayCast

by InfobyteBUENT · in Torque X 2D · 09/09/2008 (7:13 am) · 2 replies

How i can use Raycast Functions in a T3DCameraComponent RigidManager property?
tks,Emanuele

About the author


#1
09/10/2008 (12:28 am)
This is pretty complicated, but it can be done. Are you positive you need to do a raycast, there may be easier ways to find out what's in front of you. Can you describe the problem you're trying to solve?

John K.
#2
09/10/2008 (2:25 am)
I want to know if a model(1) is occluded by another model(2) in camera View .I 'll solve this problem using a control intersection between a ray starting from the centre of my camera to the center of model 1 and the model2 mesh present in view frustum.On T3DCameraComponent there are some functions to know if a model(TorqueObject) is in frustum or not?
tks,Emanuele :).