Game Development Community

How to mount objectA to object B when they collide.

by johnson518 · in Torque Game Engine · 08/23/2009 (1:35 pm) · 2 replies

I am troubled by the object mounting problem. I have tried mountObject(%obj, index), mount(%srcObj, %offsetX,%offsetY, ........), but still does not work. I have object A, and Object B, what I want to do is to mount A to B when A collide with B. Sincerely hope some one could give advice. or sample for object mounting.


Best Thanks.

About the author

Recent Threads

  • setTimerOn problem

  • #1
    08/23/2009 (4:17 pm)
    The starter kits and demos are filled with examples. Look at how weapons are mounted to the player, or the flag being mounted to the player in the demo, and even how players are mounted to a vehicle.

    WeaponImage to Player (Image to Object mounting)
    %obj.mountImage(%data.image, $WeaponSlot);
  • %obj = the object that's being mounted to
  • %data.image = the datablock name of the weaponImage to be mounted to %obj
  • $WeaponSlot = the mountpoint to use

  • Player to Vehicle (Object to Object mounting)
    %col.mountObject(%obj, %node);
  • %col = the object to be mounted
  • %obj = the object doing the mounting
  • %node = mount location

  • Everything else follows those examples.
    #2
    01/09/2012 (11:58 pm)
    @Michael Hall
    How do obj mount to WeaponImage???