Browse Search Popular Register Upload Rules User list Login:
Search:
Flying object (script)

Image:
screenshot of the scene

Author: SuperMax16

Group: Default

Filesize: 25.21 kB

Date added: 2017-04-21

Rating: 5

Downloads: 348

Views: 205

Comments: 7

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

First time using script menu
Last edited at 2017/04/22 10:43:14 by SuperMax16
Please log in to rate this scene
edit
Similar scenes
Title: Walking and flying crab!
Rating: 5.625
Filesize: 99.71 kB
Downloads: 1441
Comments: 3
Ratings: 2
Date added: 2009/08/10 11:15:18
Made with: Phun
Rating: rated 5.6
download
Title: Water Color Changing Script
Rating: 5.625
Filesize: 35 kB
Downloads: 1297
Comments: 3
Ratings: 2
Date added: 2010/03/16 17:14:21
Made with: Phun
Rating: rated 5.6
download
Title: script COLLECTION
Rating: 8.25
Filesize: 1.12 MB
Downloads: 5117
Comments: 12
Ratings: 14
Date added: 2019/03/28 18:42:29
Made with: Algodoo v2.1.0
Rating: rated 8.3
download
Title: Object identifier(read decs)
Rating: 5
Filesize: 7.84 kB
Downloads: 314
Comments: 0
Ratings: 1
Date added: 2011/11/10 20:22:25
Made with: Algodoo v2.0.1 Edu
Rating: rated 5
download
Title: flying machine (rocket)
Rating: 5.5
Filesize: 22.45 kB
Downloads: 495
Comments: 2
Ratings: 2
Date added: 2009/06/14 20:41:21
Made with: Phun
Rating: rated 5.5
download
Title: Magic Cheese Counter!!!
Rating: 5
Filesize: 8.77 kB
Downloads: 707
Comments: 2
Ratings: 1
Date added: 2010/12/05 09:10:17
Made with: Phun
Rating: rated 5
download
If you want to make it fly, try using some scripts on the wings to change their airfrictionmult while they "flap". This way, the thrust created in that process is increased. If you change the airfrictionmult back right after that, the downwards motion is reduced, resulting in an overall upwards drift. Try figuring out the period in which the outmost pieces move downwards, and during that period, increase their airfrictionmult.
@FRA32 That was my intitial intention but i haven't got any scripting knowledge; I decided to try and colapse the wings for the upstroke to reduce air friction and prevent the object being sent down with less force than being send upwards but evidently, it ceased to work.
Scripting is really simple. Its just variables and the one or other tool. For example, you can just change air friction by typing airfrictionmult = 12345xyz. To change it depending on the period, first figure out how long it takes for the cycle to repeat(check the motor speed and divide 60 by it to get seconds per revolution). Then let the scene run slowly and when the wings start moving downwards, check the sim.time by pressing f10 and entering that name "sim.time". Check the time just as well for the moment the wings stop moving downwards properly. After you know both the period length and the moments that define the motion, you can use some mathematics and an if-statement to set your airfrictionmult in the box for postStep:
first cut the time to fit the period: time = sim.time-math.toint(sim.time/[period length here])*[period length here];
then check if the time lies within the downwards motion part:
time > [first sim.time here] && time < [second sim.time here] ? {airfrictionmult = 20} : {airfrictionmult = 1}

Put this code in every box of the wings, but with the [] replaced with the actual value you found out before. Remember to find out the FIRST occurence of the sim.times, in other words the first time the downwards motion of the wings begins/ends. If everything works correctly they should be able to create an increased upwards drift. If you have questions, just ask.
@FRA32 Thanks alot for the help!
@FRA32 I felt that using a timed delay resulted in error if the motors were to be stopped and then repeated so i decided to use a series of lasers that would change the air resistance on impact instead .
Perfect!, balancing time and flying this my "flap" of the block
@SuperMax16
That works too! In fact with the method you used now, the box flies really nicely. You can see how it's repeadly thrusted forward. I think you should experiment with scripts in your own scenes, and if you think you have a nice result, publish it! Best source for scripts is looking at scenes of other people that use scripts and find out how they work. Then you can try mimiking these scripts to create your own results.