Brick Rigs

Brick Rigs

Not enough ratings
loop motion editor
By tripodalt
when we want an action or a sequence be done by step each other after a determined time and optionally start again forever:
as for exemple a music or light show or motion of actuator at spawn or after being trigered by a key or ingame switch
   
Award
Favorite
Favorited
Unfavorite
what for a loop ?


this guide is meant for detail a loop step motion

what can be used for many task
and the most spectacular can be music and light show
as an interactive tv screen
that requiert a bunch of step as hundreds or thousand

also the more easy and spectacular especially in a vehciule game
is to make animatronic of robot or animals
and depending of the design can requiert as low than only 6 steps for being a functional usefull locomotion
tought if you start by making a model replica of scifi or creature
it can be extremely chalenging and requiert extrem advanced knowelge and developement time

the first i can name is the humanoid walk motion that need attitude sensor for keep unbalance
editor : switch+sensor
at first you must to know how a switch work :
the most important is you can use it as a push button or as a switch by the last selection
if the switch receive a value less than in min its min out that will output
if a switch receive a value more than in max its out max that will output
if its inbeetween its scaled
a switch can be used just for converting a value as a map function

the logic is simple

the loop is just 2 switch being output channel source of each other
using in min 0 max 1 out min 0 max 1 reset on

one of them have to be started by another source

they are the output channel source of a sensor time
in min/max the time you want in second and out min 0 max 1 reset on

who will be the source of another loop

if we want the step reset after completion for making a recursive loop
than one of the loop switch will be the output channel source of an inverter made of a switch
in min 0 max 1 out min 0 max -1 reset on
one switch of the previous loop will use it as source for being neutralised
so even receiving a +1 signal this -1 will substract to zero

can use a math sub for that but i dont tested it

not sure if its possible to make a loop of less than a second duration and what will make negative values

if we need to control an actuator hinge or rotator of limited angle
using the loop or the inverter as output channel source of a switch that dont reset after the loop end
in min 0 max 1 out min 0 max -1 or 1 not reset / hold value

i was wrong : the actuator set to seek using as source the switch not SEEK a value angle
but just at -1 or +1 for/back
not sure if their a diference between acumulator ans seek with limited angles
what is not seeking but for some reason still work
what is enought for a walk motion
for reaching a specific angle maybe no limit are requiered on the seek actuator
and if they exist then a timer have to fit the speed
or an distance sensor will stop the loop

this out min/max can be reversed for reverse motion
i dont know how to change the speed and since the timer duration is 1 as lesser we canot use frequency what will still consume many frame rate i guess

workshop exemple
completed a simple walker minimalist design and logic with only 2 step loop motion :
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3025974575

a complete motion spider like with 6 step forward :
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3035381284


a real walking vehicule 90m tall that turn without automation :
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3035472521
on the first picture we can notice a star war walker using thruster for keeping balance and turning as just advancing
this kind of design is possible to make straight but requiert a lot of sensor as pitch/roll as many math calculation for preventing a fall

the first bench test with more complexity used to find the good usages :
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3033551870
for some reason i tryed first using cycle actuators what made this bench make crazzy bounce until the control are destroyed
maybe a bug or a missunderstanding of game physical behaviors


note :
since i wanted to display the timer i have to use the same value as in and out
then convert them by a switch with the same value as in min/max to the out min 0 max 1 as source of the loop

so it add an extra componement for make the display show the value

as every convertion use the switch wich is counter intuitive
since its a math function called map what had been in math brick normally

im still a noob

this took me 180h for reach to make a walker using this knowelge

as dont found a guide or tutorial at first i hope it will help despit the lack of
version 1.5
im noob at guides

that have trouble including bounce and sinking partially under the map at the seat
this hapend mostly when the actuator move at high speed
also biggest model are falling in piece
and its really dificult to keep physical integrity
tought it demonstrate that walking vehicule is possible
but usage of loop control seem to induce extra issues
as crazy bounce before even activating the loop by key or switch
here the modeles ingame not using the loop motion
and just the key manual control for mecanical test design especially a care for the actuator move not make piece coliding with each others
in this game its easy to convert a manual key control to a automata just by changing the source

before implementation of the 6 step loop motion:

[previewimg=33306218;sizeFull,floatLeft;20230908012821_1.jpg][/previewimg][/previewimg][/previewimg][/previewimg][/previewimg
1 Comments
Testicle Muncher 29 Sep, 2023 @ 12:06pm 
How do you fix the workshop bug