Concussive Optic Enrgy Beam
8 posts • Page 1 of 1
Concussive Optic Enrgy Beam
Here I am again, this time it is another weapon and I am a little bit hurry so I won't type too much.
The batteries are interesting try seeing the color change and the alert when its under the 30 % of charge
.
Want more subscribe me -> http://www.algodoo.com/algobox/add_subs ... llow_id=96
Have a nice day.
The batteries are interesting try seeing the color change and the alert when its under the 30 % of charge
Want more subscribe me -> http://www.algodoo.com/algobox/add_subs ... llow_id=96
Have a nice day.
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.
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.
-

Gear97 - Posts: 146
- Joined: Sat Jan 02, 2010 5:34 pm
- Location: Brazil
Re: Concussive Optic Enrgy Beam
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.
I plan to turn these bombs into warheads, which can then be attached to a missile.
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.
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...
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.
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.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: Concussive Optic Enrgy Beam
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 !
You are planning to turn them into warheads ... hmmm..
Want help ? Your concept is interesting
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.
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.
-

Gear97 - Posts: 146
- Joined: Sat Jan 02, 2010 5:34 pm
- Location: Brazil
Re: Concussive Optic Enrgy Beam
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-
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.
I've built a missile- actually a rocket, no warhead yet- that follows the mouse. My version of the Raydeg missile-
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...
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.
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.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: Concussive Optic Enrgy Beam
OK. Nice work with the rocket.
That looping problem is so weird
Can't wait to see what you'll come up with
.
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.
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.
-

Gear97 - Posts: 146
- Joined: Sat Jan 02, 2010 5:34 pm
- Location: Brazil
Re: Concussive Optic Enrgy Beam
Cool idea. You're becoming quite the professional in effects, aren't you?

I don't suffer from insanity. I enjoy every minute of it.
-

Rrobba - [Best Sig 2010]
- Posts: 1480
- Joined: Mon Aug 31, 2009 6:01 pm
- Location: Gibraltar
Re: Concussive Optic Enrgy Beam
"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.
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.

-

KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Concussive Optic Enrgy Beam
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.
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...
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.
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.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
8 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests




