Rotaing Block
3 posters
Skywanderers :: The game :: How-to
Page 1 of 1
Rotaing Block
Hello tsunamayo,
I have started playing around with the latest build and it is awesome! I built a cockpit with an opening canopy with the hinge block, and it works great. I'm now trying to build deploy-able landing gear, just to find out that I don't fully understand the logic system.
I have built a rotating block and bound it to a slider control, but on activating it through a button it ignores the slider position. How can I make it stop at the desired position?
Another question, when I have bound a system to a switch, is there a way to rebind it again without destroying the switch?
I have started playing around with the latest build and it is awesome! I built a cockpit with an opening canopy with the hinge block, and it works great. I'm now trying to build deploy-able landing gear, just to find out that I don't fully understand the logic system.
I have built a rotating block and bound it to a slider control, but on activating it through a button it ignores the slider position. How can I make it stop at the desired position?
Another question, when I have bound a system to a switch, is there a way to rebind it again without destroying the switch?
DarganLor- Posts : 11
Join date : 2016-12-26
Re: Rotaing Block
Ok, could you please tell me wether the block is rotating 360 or not at all?
With rotating block the only thing to understand is that a signal of 0 map to 0 deg and 1 maps to 360deg. Now if you input 0.5 for example, the block will move towards 180deg. It behave as a target value. Once there you have to change the value to make it move again. If it was a 360deg it will go 300-200 then 180deg. If it was at 0 it will go the 100-180 deg route.
So if you need a flip-flop mechanism where the block rotate from 90deg to 180 deg for example, you need to produce a signal of respectively 0.25 - 0.5. A good and easy way to do that is to use the mix block: link a switch (produce 0 or 1 successively), then input a = 0.25 and b = 0.5, so the output will be mapped to this 0.25-0.5 interval. This block is just doing a linear interpolation between a and b with your input as the interpolating coefficient .
I wanted to do a quick video on this, but I am away from my computer for two days so it will have to wait a bit, sorry! Also for retractable landing gear I need more progress on collision, I will do another post to explain where I stand on collision, but It will be a good opportunity to work on that!
With rotating block the only thing to understand is that a signal of 0 map to 0 deg and 1 maps to 360deg. Now if you input 0.5 for example, the block will move towards 180deg. It behave as a target value. Once there you have to change the value to make it move again. If it was a 360deg it will go 300-200 then 180deg. If it was at 0 it will go the 100-180 deg route.
So if you need a flip-flop mechanism where the block rotate from 90deg to 180 deg for example, you need to produce a signal of respectively 0.25 - 0.5. A good and easy way to do that is to use the mix block: link a switch (produce 0 or 1 successively), then input a = 0.25 and b = 0.5, so the output will be mapped to this 0.25-0.5 interval. This block is just doing a linear interpolation between a and b with your input as the interpolating coefficient .
I wanted to do a quick video on this, but I am away from my computer for two days so it will have to wait a bit, sorry! Also for retractable landing gear I need more progress on collision, I will do another post to explain where I stand on collision, but It will be a good opportunity to work on that!
Francois- Guest
Re: Rotaing Block
am i the only one that didnt understand that explanation... this is why i personally just use manual
Remitorm Darkwind- Posts : 86
Join date : 2016-12-17
Location : Cambridge, United Kingdom
Re: Rotaing Block
Hey : so I did the video, tell me if this make more sense
Also I will be adding a rotating block that rotate constantly to do radar dishes or other mechanism.
Also I will be adding a rotating block that rotate constantly to do radar dishes or other mechanism.
Re: Rotaing Block
Thanks tsunamayo. Much better now and actually very simple! Now I can finish my landing gear...
By the way, I saw that there is a small rotating block for the lego bricks, but it seems non-functional yet? Hope more logic systems come in the future for the lego bricks! Tons of possibilities!
By the way, I saw that there is a small rotating block for the lego bricks, but it seems non-functional yet? Hope more logic systems come in the future for the lego bricks! Tons of possibilities!
DarganLor- Posts : 11
Join date : 2016-12-26
Re: Rotaing Block
like hover bikes which is personally what I'm waiting on
Remitorm Darkwind- Posts : 86
Join date : 2016-12-17
Location : Cambridge, United Kingdom
Re: Rotaing Block
Yes in fact the small rotator for brick is made for turret, you can check the post over here : https://skywanderers.forumjap.com/t35-turret-creation-workflow
Now this is crappy I will change the turret system (this is what I explain in the post), and this brick will become the equivalent to the big rotator. I will also add more little mechanism for bricks.
Also I will also add a rotator that rotate continuously in one direction, for radar dishes ect.
Now this is crappy I will change the turret system (this is what I explain in the post), and this brick will become the equivalent to the big rotator. I will also add more little mechanism for bricks.
Also I will also add a rotator that rotate continuously in one direction, for radar dishes ect.
Re: Rotaing Block
hmmm that will be fun for a rotating drill head design I have planned
Remitorm Darkwind- Posts : 86
Join date : 2016-12-17
Location : Cambridge, United Kingdom
Re: Rotaing Block
There is drill block unfortunately the preview dont show up I will fix it, but you can use it to destroy block around. This is the block just before the beam block (so one before last)
Re: Rotaing Block
huh it works for me are you on about its preview in the codex or when youve placed the actual block?
Remitorm Darkwind- Posts : 86
Join date : 2016-12-17
Location : Cambridge, United Kingdom
Re: Rotaing Block
hmm i dont think its a high priority infact it may be a good thing if you plan to have different types of drill heads as then you place the motor and the actual drill head seperatley
Remitorm Darkwind- Posts : 86
Join date : 2016-12-17
Location : Cambridge, United Kingdom
Similar topics
» When hitting F2 to hide HUD, also disable the wireframe block highlighting that shows the boundary of whichever block you're looking at.
» Logic Block: The Relay
» Video How-to #02 : Rotating Block
» Duplicate Block into Hand
» Rail child block invinsibility
» Logic Block: The Relay
» Video How-to #02 : Rotating Block
» Duplicate Block into Hand
» Rail child block invinsibility
Skywanderers :: The game :: How-to
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum