Game Development Community

Link and Sort Points

by Zilla · in Torque X 2D · 10/23/2007 (4:12 am) · 7 replies

I searched the forums and the documentation but couldn't find an answer:

How can I delete/move Link Points on an object?

What are Sort Points?

#1
10/23/2007 (10:19 pm)
The easiest way to add/delete/move links points is to use Torque X Builder. Pick a scene object within the viewport, mouse over it, then click the second popup menu button. Then, just click around the object to add the link points, left click and drag to move them around, and right click on one to delete it. You can also add them in code if you prefer.

T2DSceneObject player = Owner as T2DSceneObject;
Vector2 position = new Vector2(0, 0);
float rotation = 0;
player.LinkPoints.AddLinkPoint("MyLinkPoint", position, rotation);

The sort point determines where on the scene object the layer sorting is resolved. They work with the layer manager to help determine which scene object within the same layer appears on top. By moving the sort point around you can specify where the overlapping of materials within a scene is tested.

John K.
#2
10/24/2007 (12:04 am)
@John

Thank you very much for the detailed information :-)

Quote:and right click on one to delete it

I tested this on two different pcs, but it doesn't work (everything else that you explained works fine).
#3
10/25/2007 (4:29 am)
I've noticed an intermittent problem with TXB not responding to the right click to delete a link point. That's probably what's affecting you.
#4
10/25/2007 (6:15 am)
On my machines, this bug is permanent.
#5
10/30/2007 (5:46 pm)
Ya it won't let me delete as well..
#6
07/21/2010 (2:35 pm)
What I had to do to delete the Link Points, is move it to as close to the edge of the bounding box for the Scene Object it is connected to. Then I was able to delete the Link Point by right clicking on it. It wouldn't work from any other location.
#7
07/21/2010 (4:58 pm)
this should be posted as a bug?