Getting Mount Node Position
by Banshee · in Torque Game Engine · 05/24/2004 (6:55 am) · 1 replies
Has anyone writen a function where you can call it like:
%nodePosition = %vehicleObject.getMountNodePosition(%node);
And it returns the position of the mount node in 3d space, I want to use this for my vehicle mount code to work out what mount node the player is near by first check for a vehicle within a radius then check for the distance between its nodes.
Anyway, thanks in advance.
%nodePosition = %vehicleObject.getMountNodePosition(%node);
And it returns the position of the mount node in 3d space, I want to use this for my vehicle mount code to work out what mount node the player is near by first check for a vehicle within a radius then check for the distance between its nodes.
Anyway, thanks in advance.
About the author
Torque Owner Josh Moore
%seatPos = getWords(%vehicle.getSlotTransform(%node), 0, 2);