#(calaritooo) Particle projectile (corkscrew shape)

22 messages · Page 1 of 1 (latest)

smoky bridge
#

Hello everyone, I've made various particle projectile scripts that seem to work beautifully for eventual spell implementation on my server. I have this annoying corkscrew shape I want though, a variation of the straight line projectile I made first. I want the particles to follow a straight line, spiraling around it this time however. It works perfectly if I look up or down, but firing it straight on a horizontal plane causes the corkscrew to flatten into a zigzag. Lemme know if y'all can help at all! (or if you have general suggestions on how to make the script simpler, I've just begun diving into this stuff now and had to whip out high school trig so yeah just lemme know.)

spring charmBOT
#

(calaritooo) Particle projectile (corkscrew shape)

spring charmBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

smoky bridge
#

so the corkscrew is based on the straight-line but the spiral-motion of the corkscrew is modeled from my outward spiral script, both of which work perfectly as intended. And ignore the elementary instructions inside, these scripts are spell templates for my fellow staff to modify with little friction and need for denizen knowledge

smoky bridge
#

If anyone has any ideas don’t be shy I’m desperate😭

safe karmaBOT
woeful trail
#

Your playeffect line has y as 0. That’s why it flattens when you shoot at horizontal. The mathematics can get very challenging to make this work in any direction. The corkscrew would need to step towards the target and equal amount per cycle and then rotate in 2 dimensions around that vector. As it is currently written, your corkscrew doesn’t take into account the infinite number of directions the player can face. If you haven’t already done so, I recommend working out the equation on paper and then transfer that logic to denizen script.

#

Use the face tag to get the vector from player to target. Then base your rotation off that.

smoky bridge
#

That’s precisely why I wrote for geniuses to help hahaha every change I make to the Y it causes the corkscrew to flatten in uo or down directions , so inverting the issue

woeful trail
#

Best of luck. I’m going to work on something much simpler, like signs, now. Lol.

smoky bridge
#

I have yet to try this, will do later today then close if needed👍🏻

dense vesselBOT
#
Thread Closing Reminder

Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.

If not yet resolved, please reply below to tell us what you still need.

(Note that if there is no reply for a few days, this thread will eventually close itself.)

#

@smoky bridge

dense vesselBOT
#
Resolved

Thread closed as resolved.

smoky bridge
#

I'm reopening this yall i cannot get it to save my life

dense vesselBOT
#
Thread Reopened

Thread was manually reopened by @smoky bridge.

smoky bridge
#

Thought it was resolved but it wasn't