The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AttachPropToBone alternatives
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#1
AttachPropToBone alternatives

In Machine for Pigs, there is a script called AttachPropToBone, which attaches the centrifuge arms to the shuttles placed in it. I'm assuming it's used to connect a prop with an animated model. Here's an example:

AttachPropToBone("Shuttle_3_1", "CentrifugeArms", "compound_C_bone", 0.0f , 0.0f, 0.0f, 22.625f, 2.014f, -25.091f);

Unfortunately, this script doesn't exist in either TDD or the patch that is being released. Is there any other way to attach the shuttle to the arms of the centrifuge? I tried using AttachPropToProp, but the shuttle didn't appear when I used it. I tried just leaving the shuttle in there unattached, but it appears the centrifuge's actual Bodies stay put during the animation, so the shuttle just hovered there while it spun.

EDIT: Figured it out myself! I just scratched the animation altogether and rotated the model with a script. By placing the shuttles as static physics and making them rotate at the same speed, it essentially duplicated what I had in mind.

(This post was last modified: 12-05-2013, 09:26 PM by Damascus.)
12-05-2013, 02:44 AM
Find


Messages In This Thread
AttachPropToBone alternatives - by Damascus - 12-05-2013, 02:44 AM



Users browsing this thread: 1 Guest(s)