- Joined
- Jan 30, 2013
- Messages
- 12,758
So, I have a spell idea based on this video:
In short, the spell is that a tower-like object (I used the guard tower for this) falls on the target enemy (or point in my case). I want the tower positioned slightly off the target point (around 100-200 unit) based on the caster current facing and then fall to the target point, dealing damage between those points.
The main issue I have is the 'fall' sequence. I figured the existence of the yaw, pitch, and roll will be critical for this particular need, but I have a hard time to figure out the calculation to drop the tower, especially if the angle is not horizontal nor vertical, but in-between both axes. I can work the damaging aspect and other calculations needed, but this one is quite a stump for me.
Say I cast it like this:
[1]
T O -
- ^ -
[2]
- -
O <
T -
T = Tower
^/< = Facing of Caster
O = Target Point
In short, the tower will be slightly off to the left of the caster, and then dropped to the target point, dealing damage to all units between both points on impact.
In short, the spell is that a tower-like object (I used the guard tower for this) falls on the target enemy (or point in my case). I want the tower positioned slightly off the target point (around 100-200 unit) based on the caster current facing and then fall to the target point, dealing damage between those points.
The main issue I have is the 'fall' sequence. I figured the existence of the yaw, pitch, and roll will be critical for this particular need, but I have a hard time to figure out the calculation to drop the tower, especially if the angle is not horizontal nor vertical, but in-between both axes. I can work the damaging aspect and other calculations needed, but this one is quite a stump for me.
Say I cast it like this:
[1]
T O -
- ^ -
[2]
- -
O <
T -
T = Tower
^/< = Facing of Caster
O = Target Point
In short, the tower will be slightly off to the left of the caster, and then dropped to the target point, dealing damage to all units between both points on impact.