able to move spring manually?

Suggest changes and improvements to Algodoo.

able to move spring manually?

Postby Vorticus » Tue Nov 22, 2016 9:36 pm

can we use any keybinds to move the springs, and by keybinds i mean on keyboard? itd be pretty cool. like for example, the target length, just to push something without having to create a sliding joint by a rotating circle attached to a box on the edge of the circle. thx if this gets accepted, also u can see some kinda sucky transformer figure's i've made for fun on my profile (in the algobox)
Vorticus
 
Posts: 3
Joined: Sun Aug 23, 2015 8:23 pm

Re: able to move spring manually?

Postby faytree » Wed Nov 23, 2016 4:25 am

It's actually possible to do it in Algodoo.
Here's a scene I made as an example ;)

Rating: rated 5
Filesize: 18.72 kB
Comments: 5
Ratings: 1
download
I'm back from the "dead"
User avatar
faytree
 
Posts: 941
Joined: Mon Nov 05, 2012 1:37 pm
Location: uhhh Jakku

Re: able to move spring manually?

Postby Vorticus » Thu Nov 24, 2016 2:17 pm

faytree wrote:It's actually possible to do it in Algodoo.
Here's a scene I made as an example ;)

Rating: rated 5
Filesize: 18.72 kB
Comments: 5
Ratings: 1
download

it's probably just me not being good at thyme and I rather just make action figures out of transformers on this game by cutting them to thier proportial pieces then jointing them back together with axles. i do it for prviate and personal use and just for fun. thanks. i've made springs like that for my robots, but not one that pushes a spring with keybind. thanks again
Vorticus
 
Posts: 3
Joined: Sun Aug 23, 2015 8:23 pm

Re: able to move spring manually?

Postby Vorticus » Thu Nov 24, 2016 2:20 pm

atlealst i just found out about the fact that if you set inertiamultilier to infinity the object that has an infinite amount of intertia/intertiamultiplier will stabilize itself
Vorticus
 
Posts: 3
Joined: Sun Aug 23, 2015 8:23 pm

Re: able to move spring manually?

Postby sandhaul » Thu Dec 15, 2016 8:16 am

Hi Faytree, am I able to toggle a spring by hotkey, the only difference from holding is it that when you press the hotkey, the spring stays to the spot and when you press it again it goes back to it's prime spot. This is Vorticus, I am just using another account for some reason.
sandhaul
 
Posts: 14
Joined: Mon Dec 05, 2016 12:48 am

Re: able to move spring manually?

Postby FRA32 » Thu Dec 15, 2016 5:32 pm

You can do this by opening the springs script menu, going to postStep and add this statement to it:

keys.isDown("up/down/left/right/abcdefg...) ? {
length = 9001} : {length = 9}

Pick the key you want to use and change the numbers to your desired length. You can do the same with any other variable.
FRA32
 
Posts: 213
Joined: Wed Dec 03, 2014 9:51 pm

Re: able to move spring manually?

Postby sandhaul » Fri Dec 16, 2016 5:35 am

thanks, im vorticus by the way, like i said in my above post, im just using another account. is there anyway to make the spring stay at a spot like it's toggled, and when you press that key again, it goes back to it's original spot?
sandhaul
 
Posts: 14
Joined: Mon Dec 05, 2016 12:48 am

Re: able to move spring manually?

Postby FRA32 » Fri Dec 16, 2016 3:45 pm

You can add a _toggle = false variable using the black box in the top left. Then in the keys.isdown ? {} : {} you add
!_toggle ? {
_toggle = true;
length = 9001 ? {
_length = 9
} : {
_length = 9001
}
} : {}
in the first bracket, and
_toggle = false
in the second bracket. This way, when you release your key, the spring stays in place until you hit it again
FRA32
 
Posts: 213
Joined: Wed Dec 03, 2014 9:51 pm

Re: able to move spring manually?

Postby sandhaul » Sat Dec 17, 2016 5:04 am

sorry if im bothering but could you make a small scene for a better understanding? thx
sandhaul
 
Posts: 14
Joined: Mon Dec 05, 2016 12:48 am

Re: able to move spring manually?

Postby faytree » Mon Dec 19, 2016 7:22 am

I've updated the scene. Feel free to look at the script I've written in the spring(the right spring, not left) 8-)

Rating: rated 5
Filesize: 18.72 kB
Comments: 5
Ratings: 1
download
I'm back from the "dead"
User avatar
faytree
 
Posts: 941
Joined: Mon Nov 05, 2012 1:37 pm
Location: uhhh Jakku


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest

cron