Mounting an object to a linkpoint during realtime
by Kevin Epps · in Torque Game Builder · 03/25/2008 (11:00 am) · 2 replies
Is there a way to do this?
I want to mount an object to another object's different linkpoints during gameplay.
I want to mount an object to another object's different linkpoints during gameplay.
About the author
Torque Owner Derelict
mountToLinkpoint(t2dSceneObject object, int linkpointID, [float mountForce = 0], [bool trackRotation? = true], [bool sendToMount? = true], [bool ownedByMount? = true], [bool inheritAttributes? = true] ) - Mounts onto a specified object at the linkpoint specified." "@param object The object to mount to." "@param linkpointID the linkpoint on that object that we're mounting to." "@param mountForce The magnitude of the force constantly applied to the object to keep it at the mount point. A value of 0 makes the mount rigid, and thus stuck to the object it is mounted to." "@param trackRotation Whether or not to track the rotation of the object this is being mounted to." "@param sendToMount Whether or not to send the object directly to the mount point." "@param ownedByMount Whether or not the object is deleted when the object it is mounted to is deleted." "@param inheritAttributes Whether or not to inherit certain attributes from the object this is being mounted to. The inherited attributes are enabled, visible, paused, and flip." "@return (integer mountID) The mount ID if successful or -1 if the mount fails."