Game Development Community

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.

#1
05/24/2004 (12:26 pm)
This should work.

%seatPos = getWords(%vehicle.getSlotTransform(%node), 0, 2);