|
Post by LdaQuirm on Jun 23, 2014 15:23:32 GMT -8
While Optic lens spells do now interact with puzzle crystals, the direction of movement is still broken. Firing a beam spell at a crystal on a vertical wire causes the crystal to move down the wire no matter the direction of the spell. Firing a beam spell at a crystal on a horizontal wire causes the crystal to move left on the wire no matter the direction of the spell.
Reproduce: fire a beam spell at a crystal on a wire. MagicMaker v0.9.1.2
Atan() or Dot()?
|
|
Laddo D
Magicmaker Developer
Magicmaker Maker
Posts: 215
|
Post by Laddo D on Jun 23, 2014 17:50:28 GMT -8
Thanks for posting this.
I haven't got it figured out yet but when I do you'll see it in the next version.
I don't use either atan() or the dot product to determine direction. Instead it follows a few if statements depending on the projectile/lasers velocity. But laser velocity is handled differently, so that what's causing the problem.
|
|
Laddo D
Magicmaker Developer
Magicmaker Maker
Posts: 215
|
Post by Laddo D on Jun 28, 2014 14:13:21 GMT -8
Oh, I figured it out. Turns out it was an issue with how bounce was implemented. Lasers always bounce, but if they don't have the bounce material set they simple stop immediately after the first bounce. This was causing them to have an incorrect velocity vector when the puzzle slider tested it.
Thank you very much!
|
|
|
Post by LdaQuirm on Jun 29, 2014 15:51:44 GMT -8
Aha! Makes sense. That was an annoying bug too. Glad to be able to help.
|
|