#Rotation with item displays

1 messages · Page 1 of 1 (latest)

verbal delta
#

you might have luck using the right rotation, not sure

oblique acorn
#

You're simply trying to replicate a motion on a circle.

verbal delta
#

otherwise you'll have to rotate the translation vector too

oblique acorn
#

Item displays are rotated around their center, therefore the problem becomes quite easy to solve.

verbal delta
#

kormic what are you talking about

oblique acorn
#

They want to set a correct translation, no?

#

Unless I am wrong, sprinkling a bit of trigonometry on it will do the trick.

verbal delta
#

yes, i'm confused because you're just re-stating what they said already

oblique acorn
#

I was about to explain how to achieve it, my friend.

#

Without a bunch of pre-computed vectors, that is.

verbal delta
#

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
oblique acorn
#

I am confused. Am I the one misunderstanding the problem or you're mistaken about me misunderstanding it?

verbal delta
#

both are one line fixes

#

actually it'd be even simpler if they used 2.10's display syntaxes

oblique acorn
#

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.

verbal delta
#
rotate {_x} around z-axis by {_a} degrees```
oblique acorn
#

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})```
verbal delta
#

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

oblique acorn
#

Sorry. It's just that I am not a programmer, I am an engineer.

verbal delta
#

kormic you know those aren't mutually exclusive

oblique acorn
#

True, but I lack the skill to be effective at programming. As you can see, I tend to build things from stratch.

severe zodiac
#

What website did u use

#

Imma have to learn this shit

oblique acorn
#

Depends on what you specifically mean. We've covered a few topics here.

#

Vectors? Quaternions? Mathematics in general? Display entities and transforming them?

severe zodiac
#

like editing.

#

like to make entities

#

also anyway to automate em

oblique acorn
#

Be more specific. What kind of editing?

bronze token