Concussive Optic Enrgy Beam

Discuss scenes and videos made with Algodoo.

Concussive Optic Enrgy Beam

Postby Gear97 » Fri Jul 22, 2011 12:11 am

Here I am again, this time it is another weapon and I am a little bit hurry so I won't type too much.
Rating: rated 8.2
Filesize: 368.48 kB
Comments: 14
Ratings: 18
download

The batteries are interesting try seeing the color change and the alert when its under the 30 % of charge :thumbup: .
Want more subscribe me -> http://www.algodoo.com/algobox/add_subs ... llow_id=96
Have a nice day. :D
Gears are my favorite mechanism. Why do you think I have this username ? ;)
Make sure to spend some time to see my work http://www.algodoo.com/algobox/profile.php?id=96, just to kill sometime ;)
PS: Gear97™ Is a trademark from me. Any unauthorized use of the term "Gear" for usernames or other naming ideas will be punished.
User avatar
Gear97
 
Posts: 146
Joined: Sat Jan 02, 2010 5:34 pm
Location: Brazil

Re: Concussive Optic Enrgy Beam

Postby Someone Else » Fri Jul 22, 2011 3:03 am

Nice idea...

I recently created a scene that includes ten different types of explosives. It's designed to work in Phun (like most of my scenes), so each bomb will explode on impact after it's been activated.

I was thinking about having a mechanism that would literally shoot the bomb, much like a traditional cannon.

However, I really do like the idea of using a laser beam to spawn the explosion instead of a collision. This would prevent collision detection problems entirely.

Rating: rated 7.2
Filesize: 143.74 kB
Comments: 9
Ratings: 7
download


I plan to turn these bombs into warheads, which can then be attached to a missile.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Concussive Optic Enrgy Beam

Postby Gear97 » Fri Jul 22, 2011 3:24 pm

This is awesome ! I've got to say I love the idea of different explosive kinds, so that you can pick up the one that best suits for your use ! :thumbup:
You are planning to turn them into warheads ... hmmm.. :!:
Want help ? Your concept is interesting :)
Gears are my favorite mechanism. Why do you think I have this username ? ;)
Make sure to spend some time to see my work http://www.algodoo.com/algobox/profile.php?id=96, just to kill sometime ;)
PS: Gear97™ Is a trademark from me. Any unauthorized use of the term "Gear" for usernames or other naming ideas will be punished.
User avatar
Gear97
 
Posts: 146
Joined: Sat Jan 02, 2010 5:34 pm
Location: Brazil

Re: Concussive Optic Enrgy Beam

Postby Someone Else » Sat Jul 23, 2011 2:43 am

I've pretty well got it figured out, but not completely.

I've built a missile- actually a rocket, no warhead yet- that follows the mouse. My version of the Raydeg missile-
Rating: rated 8.7
Filesize: 73.95 kB
Comments: 21
Ratings: 21
download


It works pretty well. My version, that is. When you try to do a counterclockwise loop, it still works fine. However, when you try to do a clockwise loop, the instant the mouse passes below the center of the missile, it spazzes out.

I've patched it up a bit, so if you try to do a big loop, it's okay-ish. It will overestimate the amount it needs to turn by a bit.
For a medium-size loop, it will work flawlessly.
For a small loop, it will turn the wrong way entirely.

The bit of code responsible for these errors is embedded a considerably larger code. The offending bit includes a constant term and a linear term. Now that I pour some brainpower into it, I realize that I perhaps should try changing the linear term instead of the constant term, as I had done before.

I'll go doo it. And, assuming this topic isn't buried yet, I will post here.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy

Re: Concussive Optic Enrgy Beam

Postby Gear97 » Sat Jul 23, 2011 2:17 pm

OK. Nice work with the rocket. ;) That looping problem is so weird :crazy:
Can't wait to see what you'll come up with :).
Gears are my favorite mechanism. Why do you think I have this username ? ;)
Make sure to spend some time to see my work http://www.algodoo.com/algobox/profile.php?id=96, just to kill sometime ;)
PS: Gear97™ Is a trademark from me. Any unauthorized use of the term "Gear" for usernames or other naming ideas will be punished.
User avatar
Gear97
 
Posts: 146
Joined: Sat Jan 02, 2010 5:34 pm
Location: Brazil

Re: Concussive Optic Enrgy Beam

Postby Rrobba » Sun Jul 24, 2011 11:54 am

Cool idea. You're becoming quite the professional in effects, aren't you?
Image
I don't suffer from insanity. I enjoy every minute of it.
User avatar
Rrobba
[Best Sig 2010]
 
Posts: 1480
Joined: Mon Aug 31, 2009 6:01 pm
Location: Gibraltar

Re: Concussive Optic Enrgy Beam

Postby KarateBrot » Tue Jul 26, 2011 7:16 pm

"looping problem"? sounds like there's a value in your code that's not defined at a special angle. you need to be careful with that.
i mean: don't divide by zero or don't put wrong values into trigonometric functions. with the arc tangent for example there are only values allowed from -pi to pi etc... the arc cosine solves the problem

i'm just saying because that was a problem with things i built too. when there were undefined values my pointers went crazy.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany

Re: Concussive Optic Enrgy Beam

Postby Someone Else » Wed Jul 27, 2011 2:48 am

The problem actually deals with subtraction. Sort of.

I use arc-sine and arc-cosine to get the actual angle. This works perfectly, it's the angle between two angles that I want.
I use an unusual coordinate system where 0 is up, increasing clockwise from there and decreasing (negative numbers) counterclockwise. Math.pi rads points straight down, as does -pi.

This means that, in the simplest way to calculate it (with subtraction), the angle between 3.14 rads and -3.14 rads (both pointed nearly straight down) is nearly 2 * pi rads, not 0.0031852722 rads. This, naturally, would cause a mouse-controlled missile to spaz out entirely. And, thanks to my coordinate system, this would happen when the mouse passes below the missile.

So it's not a problem with a NaN answer, but a perfectly legal, but wrong answer. Some IF statements did solve part of the problem, and got me close to the other part. I shall put a bit more thought into it and may get it to work properly.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.

ARE YA HAPPY NOW?????

Thymechanic/Phundamentalist

Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
User avatar
Someone Else
 
Posts: 1147
Joined: Sun Nov 21, 2010 10:53 pm
Location: The Milky Way Galaxy


Return to Scenes

Who is online

Users browsing this forum: No registered users and 3 guests