Game Development Community

Problem Mounting Object

by Michael Rogers · in Torque Game Engine · 02/25/2007 (6:21 pm) · 1 replies

Hi, All:

I'm having a problem mounting an object to a player -- the Ava model, made by Spencer Boomhower, and available in the Torque store.

Ava appears to have mount0 and mount1 -- at least I see those showing up in TST Pro. Also, the object that I want to mount -- a bucket that Spencer made for me -- has a node called mountPoint.

I can do this:

ava. mountObject(2050,0); // 2050 is the id of the bucket

and then

echo(ava.getMountedObject(0));

displays 2050.

But when I move around with Ava, the bucket -- a ShapeBase -- doesn't move.

Any ideas?

Thanks,

Michael Rogers

#1
03/19/2007 (11:54 pm)
Is the object an actual "item" with a defined datablock in a .cs file, or is it simply a static item you loaded into your mission through the mission editor? A defined "datablock ShapeBaseImageData" will have a mountpoint defined. This is where you tell the object to mount on mount0 or mount1 (such as "mountPoint = 0;").

I believe that by default, if the mountPoint for an object is not defined it will simply mount on the root node of the mesh.