[RESOLVED] A few questions about Mounting and Link Points
by Chris Hoopes · in Torque Game Builder · 05/08/2012 (8:21 pm) · 2 replies
When mounting one object to another I saw that you can create Link Points on the parent object to determine where objects are allowed to be mounted. This is great but is there any way of specifying on the child object where its mount point should be?
For example, I want to mount a gun sprite to the hand of my player sprite for when he's firing the weapon. I put the Link Point on the player (parent) sprite's hand but when I try to mount the gun (child) object it always just mounts in the center of the sprite. I tried putting a Link Point on the grip of the gun thinking that when I mounted it the two points would lock together but this doesn't seem to be the case as apparently only parent Link Points are respected.
Is this correct? What's the best way to fine tune where two objects should mount? I also have to worry about the child element flipping to the right spot when setFlip is called on the parent but that might be a separate issue.
Thanks for any help you can give.
For example, I want to mount a gun sprite to the hand of my player sprite for when he's firing the weapon. I put the Link Point on the player (parent) sprite's hand but when I try to mount the gun (child) object it always just mounts in the center of the sprite. I tried putting a Link Point on the grip of the gun thinking that when I mounted it the two points would lock together but this doesn't seem to be the case as apparently only parent Link Points are respected.
Is this correct? What's the best way to fine tune where two objects should mount? I also have to worry about the child element flipping to the right spot when setFlip is called on the parent but that might be a separate issue.
Thanks for any help you can give.
About the author
Recent Threads
#2
05/09/2012 (8:19 am)
Chris, you can remove the Link Points by right click on them in the LinkPoint Editor.
Torque Owner Chris Hoopes
Original Dog Party