Sinusoidal motion

bowser499

Member
Reaction score
1
How can I do the motion like this:
s-nominal-t.png
 

inevit4ble

Well-Known Member
Reaction score
38
Trigger:
  • Set TempReal = (Sin((Facing of (Triggering unit))))

TempReal = y
"Facing of Triggering Unit" = x
Just put your values in and you will calculate sine wave

So I would guess if you would normally create something in a straight line and put this Variable in instead you would get a wave?
 

thorhunter

You can change this now in User CP.
Reaction score
32
What exactly do you want to do. Like missle that is fired from unit that moves in sinusoid or what?
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
The only way I can think of doing this is tracking multiple points along your wave, then creating lightning effects between every new point and the one before it.
 

inevit4ble

Well-Known Member
Reaction score
38
I tried to achieve that. using a loop and setting TempReal = sin(IntegerA) and offsetting the points by TempReal.

Let me just add that a whole lot of other cool things happened but just not a sine wave
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top