In response to some of the discussion on the forums and russell's blog, I'm demonstrating a more "elegant" way to set up parent and child movement in Flowgraph.
See picture:
And Video:
http://www.youtube.com/watch?v=uZp5IWXeu-4
And aside:
If you are attaching and detaching children in FG, make sure you set "KeepTransform" to "1" so that your objects don't "disappear". If left default "0", then you'll be taking your entity's global position and making it their new local position (which is far away!).
hello, im doing arch1101 in james perterson class. i think the your "attach child" suggestion was extremely helpful.
ReplyDeletehowever it is abit late, had i seen this earlier, i would have been able to do more amazing things in sandbox 2.
being able to CHANGE the parent child relationship DURING the game opens up a whole new world of possiblities. one could say we don't need to use this function for linear movement as we can simply make each entity move differently....
BUT it is impossible to make different objects rotate and change their axis of rotation.....until i knew this changing of parent child relationship could be done.
an example of what could be done using this parent child relationship is modelling a RUBIX cube in sandbox2!
by setting the parents in the centre cubes, you can make the other cubes rotate nicely about the centre axes jsut like a real rubix cube!
Hello u3254938,
ReplyDeleteThat's great idea. In fact more advanced stuff like this is covered in BENV2423 real-time elective.
For a look at a RUBIX cube-like concept check out this student's blog from last year:
http://benjaminknowles2423.blogspot.com/2010/11/research-experiment-final-tutorial.html