How do I recreate the vertically moving platform?
I have been examining the vertically moving platform from MM. it has a “platform position”. What is this how do I query the platform position transform? It also has a distance to edge node. Is that in a menu somewhere I don’t see? Being able to get/set the transform of an object using the logic and processing nodes would be great for advanced gadgets. I hope you will have a way to do this. The platform gave me hope since I saw it was doing some sort of distance check to display the text it was showing.
-
It’s just an animation I think, it’s not actually looking up the distance.
You might be able to use a laser scope to judge the distance of something, maybe, haven’t tried it myself.
And if you want to see how they did the moving platforms you can remix them by finding under contraptions in the dreamshaping section -
So far I figured out the “distance to edge” node is a “number displayer” from the “movers and output” menu. Which leads me to ask, is there a way to query what type of node is being used if a user renamed it? It would be nice to have a property somewhere that shows the class type even if the user renamed the node.
I also did not realize you could create a text displayer and turn it into a scene object then group it so it follows an object. Which was one of the things I did not understand why this platform worked the way it did.
Still trying to figure out how to get the platform position. -
I don't know if this answers your question but I also poked around into this element and found that the distance being displayed is just a value that's also used to drive a timeline that causes the animation. Its sent 'wirelessly' to the chip that shows the text. There isn't anything involving transforms going on. However I do know that it is possible to get an element's scene transform although I forget how at the moment. I want to play around with that myself.
-
I also found the distance check was not what I thought it was. But I did find what I wanted on accident.
You can create a tag for any object using Gadgets/Sensors & Input/Tag the tag itself has a transform. You can use a splitter from the logic & processing group. That will let you get at the position/roatate/scale then you can spit those to use to do math or drive a mover and output number display. This seems like it would be a less confusing way to make that platform example. However I don’t know if you can drive an objects location in this way. However I did see that emitters have a way to set their transform.
Zaloguj się, aby dodać komentarz.