#Rotation with item displays
1 messages · Page 1 of 1 (latest)
You're simply trying to replicate a motion on a circle.
otherwise you'll have to rotate the translation vector too
Item displays are rotated around their center, therefore the problem becomes quite easy to solve.
kormic what are you talking about
They want to set a correct translation, no?
Unless I am wrong, sprinkling a bit of trigonometry on it will do the trick.
yes, i'm confused because you're just re-stating what they said already
I was about to explain how to achieve it, my friend.
Without a bunch of pre-computed vectors, that is.
the precomputed vectors they have are not relevant to the rotating thing
they have a lot of displays they want to maintain in a formation
that's what the vectors are for
they just need to either
- use the right rotation (i'm not 100% sure this rotates the translation)
- or rotate the translation vectors by the same quaternion they're rotating the displays with
I am confused. Am I the one misunderstanding the problem or you're mistaken about me misunderstanding it?
both are one line fixes
actually it'd be even simpler if they used 2.10's display syntaxes
Okay, now I know what you mean Sovde. I was talking about vectors which were most likely used to achieve the third scenario, but again, it seems to have been made in Blockbench.
Nevermind then.
rotate {_x} around z-axis by {_a} degrees```
Yes. This is likely to be the optimal solution.
My first thought was to do the following to set coordinates of translation vectors, but your is more concise and versatile.
set {_y} to {_r} * cos({_phi})```
if you find yourself using sin and cos for vectors, you're probably doing it wrong
better and faster to have the trig happen in java rather than skript
Sorry. It's just that I am not a programmer, I am an engineer.
kormic you know those aren't mutually exclusive
True, but I lack the skill to be effective at programming. As you can see, I tend to build things from stratch.
That's true too.
Depends on what you specifically mean. We've covered a few topics here.
Vectors? Quaternions? Mathematics in general? Display entities and transforming them?
Be more specific. What kind of editing?
BDEngine is a 3D editor with many features for easy creation of Block Display, Item Display and Text Display models.