Browse Search Popular Register Upload Rules User list Login:
Search:
Can anyone figure this out?

Image:
screenshot of the scene

Author: UnityDogGaming04

Group: Default

Filesize: 50.8 kB

Date added: 2019-05-22

Rating: 5

Downloads: 372

Views: 90

Comments: 2

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

I am trying to create a scripted engine in which the red lasers change the wheel segment's airFrictionMult value to 1000 and the green lasers turn airFrictionMult to 0. The wheel on the left spins clockwise and the wheel on the richt spins counterclockwise. it is important these wheels dont spin any faster than 300 RPM because with the sim freq, the lazers could skip a segment of the wheel and possibly ruin the entire experiment, as it could leave one segment with a high friction and cause the whole mechanism to shake.

obviously, im still not qualified to use Thyme. i have put in the code myself, but it refuses to do anything.

Thanks.
Please log in to rate this scene
edit
Similar scenes
Title: Weird orbits I: Figure-8
Rating: 5
Filesize: 5.18 kB
Downloads: 84
Comments: 0
Ratings: 1
Date added: 2018/11/05 05:47:21
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: P1049's 5th Figure
Rating: 5
Filesize: 24.98 kB
Downloads: 69
Comments: 0
Ratings: 1
Date added: 2020/03/24 01:44:54
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Hello Kitty v0.4
Rating: 5
Filesize: 1.24 MB
Downloads: 371
Comments: 2
Ratings: 1
Date added: 2013/04/18 02:05:17
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: Pichu Figure
Rating: 5
Filesize: 35.23 kB
Downloads: 83
Comments: 1
Ratings: 1
Date added: 2017/01/01 18:44:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: mini figure (Phunlet)
Rating: 5
Filesize: 20.14 kB
Downloads: 133
Comments: 0
Ratings: 1
Date added: 2010/01/30 17:23:10
Made with: Phunlet
Rating: rated 5
download
Title: Figure 4 Deadfall
Rating: 5
Filesize: 17.66 kB
Downloads: 271
Comments: 0
Ratings: 1
Date added: 2010/07/21 01:21:07
Made with: Algodoo before v1.8.5
Rating: rated 5
download
There is no code anywhere. You have to write this on the lasers' onLaserHit:

(e)=>{e.geom.airFrictionMult = 0}

and on the other one:

(e)=>{e.geom.airFrictionMult = whatever}

i guess 1000 would be an ok value, but maybe try 100


Worth noting that this is going to do absolutely nothing besides braking unless you turn wind on or make it so that it moves


Also there is no need to limit the speed to 300 RPM, you can use a higher sim frequency (120 Hz is preferred, 240 Hz is fine, more than that and you're causing lag if the scene is more complex). 120 Hz would duplicate the maximum speed.

There's another way, where you would have no speed limit at all: using no lasers; but since the segments are cut instead of rotated it'll be tedious
So e.other.airFrictionMult wont work?
I stated that I tried putting the code in by myself, but I erased it.
Also I have severe OCD and dont like working with other freqs unless i have to to do what i want to do. i dont know why it bothers me, but it does.