Browse Search Popular Register Upload Rules User list Login:
Search:
I'm glad I helped you !!!
Yes, this is a Silverfish (Lepisma saccharina).
Very beautiful!!!!
Thanks!!!!
I probably made a mistake !!
The robot should control itself!
Xray thanks for the comment!!


I wanted to create a robot that avoids obstacles using a radar.
The main robot on the left has a rotating laser.
This laser has the Scene.addCircle script on "on.laser.hit".
The position of the generated circles is with scaled and translated coordinates, this is the pos: = [(e.pos (0) / 8) + 56, e.pos (1) / 8];

The circles appear in the smaller version of the scene on the right side of the main playfied and reproduce what the robot on the left "sees".

The small yellow circle with 7 lasers on the right also follows the position and angle of the main robot, but reduced and scaled.
this is the script on postStep:
(e) => {
x = scene.my.pos0; // x main robot
y = scene.my.pos1; // y main robot
a = scene.my.ang; // angle main robot
pos = [(x / 8) + 56, y / 8];
angle = a
}

Obstacle detection occurs in the right square.
The 7 lasers on the yellow circle act as distance meters.
The 7 lasers are connected with the thrusters of the main robot with scene.my.
In doing so, the main robot deviates and avoids obstacles indirectly.

I hope I have explained my idea well.

The yellow and red arrows pointing in and out were for decoration only.

Maybe short-term memory can be confusing, I changed the title.

I uploaded the scene to another computer (a little older), and the scene works very badly.
It goes slow and the main robot's laser hits objects many more times, generates many more circles in the right square and slows down the scene again.
I don't know why, if the scene lags, the laser hits several times ..
On my computer the scene runs smoothly and I hadn't noticed this problem.
I have tried reducing the simulation frequency to 10, and it works better.

If you want, try downloading it again to see if it works.
Thank you!!!
Thanks so much!!
I'm glad we understood each other ..
I will follow your advice, I will be careful to specify the functioning of the scenes !!
Thanks s_noonan!!!
THANKS!!!!!
Oh, thank you, I'm happy!
Last edited at 2020/10/18 20:55:38 by matto
Thanks Xray!!
Thank you guys!!
Thank you all!
Yes you are right!!
If you want you can change the scene !!
Thanks!!
I played a lot of Cell Lab game !!
Hi Xray!!
Thanks!!!
I wanted the octopus to have a calm and fluid movement!
Since it was perhaps too slow, I reloaded the scene with the octopus movement a little faster !!
Thanks!!
Thanks s_noonan!!!!!
Thanks, I am honored for this compliment !!
I am sorry for the late reply!!
I apologize for causing problems with the "Bacteria under the microscope" scene!
I deleted the scene!
Thanks for interesting
I didn't understand what happened.
the problem was "scene.my.sin"?
I won't write like that anymore!
Thanks Xray!!!!:)
Hello s_noonan.
Thank you!!
Yes, the shield is the only idea I came up with to have an arc of green balls always in front of the vehicle.
"Making balls based on the angle and position of the generator", is difficult for me.
Luckily this scene doesn't give any problems...:blush: :lol:

Soon, I'll try to edit the "Bacteria under the microscope" scene with your advice.
Thanks again !!
Very interesting and functional !!
I'm not so good !!
Thanks!!!!:)
Thanks guys!!!:lol:
Thanks so much!! s_noonan!!!:)
I'm glad you look at my videos too!
:) :) :) :) :lol:
Thank you so much guys !!!:) :)
I'm happy!!!

I would like to ask a question:
Is there a way to comment on scripts so that algodoo does not delete them from the menu script?
I tried with this syntax:
(comment);
It's probably not a right way!
There's a way?
Thanks in advance!!
Last edited at 2021/04/24 09:03:38 by matto
Thanks a lot to everyone!!!
You are very kind!!:) :)
Thank you guys!!!:)
Thanks a lot xRay !!:) :)
I would like to ask a technical question:
Is there a way to delete a custom variable (_variable = 0;) from an object?
Ok thank you very much !!
I will also write like this, in the variables that I do not use !!:) :)
Fantastic!!!!
Nice trick !!
Thanks s_noonan.
Last edited at 2021/05/13 17:49:06 by matto
previous | 1 … 9 10 11 12 | next