T3DMountComponent Help Please.
by Gambone · in General Discussion · 09/13/2008 (12:27 pm) · 0 replies
Hello,
I've successfully mounted my model (a human) with a model (a gun) in the ShowTool. However, when I use MountObject() in my Torque game the gun model seems to go off somewhere. I've noticed their SceneGroup positions were way off after MountObject. Here's my code. Any suggestions
T3DMountComponent ParentMountComponent = Owner.Components.FindComponent();
T3DSceneComponent ChildSceneComponent = pistol.Components.FindComponent();
//R_Mi_Base is Parent's Mounting Point and mount0 is the node to mount to the parent.
bool result = m.MountObject(ChildSceneComponent, "R_Mi_Base", "mount0");
I've successfully mounted my model (a human) with a model (a gun) in the ShowTool. However, when I use MountObject() in my Torque game the gun model seems to go off somewhere. I've noticed their SceneGroup positions were way off after MountObject. Here's my code. Any suggestions
T3DMountComponent ParentMountComponent = Owner.Components.FindComponent
T3DSceneComponent ChildSceneComponent = pistol.Components.FindComponent
//R_Mi_Base is Parent's Mounting Point and mount0 is the node to mount to the parent.
bool result = m.MountObject(ChildSceneComponent, "R_Mi_Base", "mount0");