Game Development Community

DIFF question

by Robert Stewart · in Torque Game Engine · 08/07/2005 (5:26 pm) · 2 replies

Ok well I have a building in my game and im trying to find the Z Axis for the floor, is this possible? Thanks for any help.

#1
08/07/2005 (5:36 pm)
Yep. One way would be to shoot a raycast down from the center of the player, untell it hits the building then subtracted the distance from the players z.
#2
08/07/2005 (5:49 pm)
I think that should work, Thanks.