Game Development Community

Link Points

by Charles Freedman · in Torque Game Builder · 02/13/2008 (11:43 am) · 2 replies

I am pretty new to TGB and have been working through all I can, and lately I have come across a problem I think can be solved using link points. However, when I tried to use them I realized I had no Idea how to use them, and no Idea where to go to get information. I have looked through the documentation and TDN and haven't found anything pertaining to these. I also scanned through the forums topics in several areas with no luck.

My question is, what are link points, how do you use them, and what good are they?

If any one can give me a good idea where to start or maybe a pointer in the right direction, I would be much appreciative. I may have over looked something in some of the documentation, and if thats the case I could much use an Idea of where to find information on this topic.

Thanx ahead!

About the author

Recent Threads

  • Pivot point in TGB

  • #1
    02/13/2008 (12:00 pm)
    In terms of documentation, you probably want to look at the TGB reference, and things like the addLinkPoint and getLinkPoint methods of t2dSceneObject. It might be easier to help point you in the right direction if you explained a bit more what you were trying to achieve.

    At a high level, linkpoints are points that are defined in "local space" relative to the object they are on. The most common applications are mounting one object to another or finding the world position of a certain point on your object (e.g. the end of the barrel of a gun, so you can spawn a bullet object at that point to make it look like the gun fired the bullet).
    #2
    02/13/2008 (12:15 pm)
    Thank you very much for the clarification. Just minutes after I submitted this posting I decided to scour the T2D reference material and found a very similar answer to what you just told me.

    To better explain my problem, I am attempting to make a dynamic chain object that connects to my player vehicle and has multiple chain links that react individually to gravity and collision, but are linked together.

    I don't know if that very well explains my problem, but basically I want to create a chain.

    Thanx again for your response.