#(JustinS) rotation of item display

27 messages · Page 1 of 1 (latest)

fair cloak
#

How can I rotate an item display in the direction of a vector between 2 coordinates? For example, I have (0,0,0) and (3,5,0). I want the item display to align with the vector between those 2 coordinates. Preferably using mechanisms

unique willowBOT
#

(JustinS) rotation of item display

unique willowBOT
#

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.

fair cloak
#

I know about left_rotation, but it inputs a quaterniontag which I'm not sure how to calculate here. And that's also rotation on only 1 axis

fair cloak
#

any smart ass that knows this stuff?

latent dagger
#

So you want item_display A look at the location B?

#

@karmic fiber what does "I want the item display to align with the vector between those 2 coordinates." mean?

karmic fiberBOT
fair cloak
#

yes, monke has the right idea

latent dagger
#

Only yaw? or exact pointing?

fair cloak
#

exact

#

all 3 axis

latent dagger
#

oh this is tricky

#

oh

#

!c look

warped doveBOT
# latent dagger !c look
Group

entity

Syntax

look (<entity>|...) [<location>/cancel/yaw:<yaw> pitch:<pitch>] (duration:<duration>) (offthread_repeat:<#>)

Short Description

Causes the NPC or other entity to look at a target location.

Description

Makes the entity look towards the location.

You can specify either a target location, or a yaw and pitch.

Can be used on players.

If a duration is set, the entity cannot look away from the location until the duration has expired.
Use the cancel argument to end the duration earlier.

Optionally, you can use the "offthread_repeat:" option alongside "yaw:" and "pitch:"
to cause a player's rotation to be smoothed out with a specified number of extra async rotation packets within a single tick.

latent dagger
#

Does look command works for you?

fair cloak
#

isn't that only for npcs and players?

#

I'll try later though

latent dagger
#

no it's for all entities

fair cloak
#

👍 then Ill try

golden solarBOT
#
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.)

#

@fair cloak

golden solarBOT
#
Auto-Close Timeout

No response to request to close thread after 3 days. Automatically closing.

fair cloak
#

yess that worked

golden solarBOT
#
Thread Reopened

Thread was manually reopened by @fair cloak.