What is "entity direction in º relative to S"?

Started by Maquinablablabla on Sun, 02/17/2019 - 10:58

Topic category: Help with MCreator software

Last seen on 10:52, 21. Feb 2021
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
What is "entity direction in º relative to S"?
Sun, 02/17/2019 - 10:58

What is "entity direction in º relative to S"?

I want to know how to put into a procedure the dirction of a mob, because of it says "entity direction in..." i thought (obviously) that was something related to direction. But I dont know how to read it, because it is in only one variable. I thought it was in two variables: "Y-axis" and "X-axis" or something like in the vanilla minecraft with commands.

Can somebody tell me how to use that variable?

You can use print to chat to…
Sun, 02/17/2019 - 15:24

You can use print to chat to print the values of this block in the chat and you will see what it does. And this has been asked quite a lot of times so just search on the forums a bit :)

Last seen on 10:52, 21. Feb 2021
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I cant find any topic about…
Wed, 02/20/2019 - 16:38

I cant find any topic about that.

Last seen on 06:35, 22. Jul 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Sorry Klemen, but even after…
Wed, 02/20/2019 - 18:38

Sorry Klemen, but even after printing the values to the chat, I still don't understand how to do this.

Please help.

Rotate around and you can…
Wed, 02/20/2019 - 19:12

Rotate around and you can see how the angle changes. If you don't know how angles and degrees work, check these pages:

Last seen on 06:35, 22. Jul 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ok thanks
Sun, 03/03/2019 - 16:00

Ok thanks

Last seen on 13:16, 14. Jul 2021
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How would i move the player …
Fri, 10/04/2019 - 22:23

How would i move the player / a entity in the direction of the rotation of the entity or player?
Could you give me a example of a procedure / script that would do this?

I am a game dev and i normally debug stuff for hours but i think i will ask someone elses aproach to this for once.
Also i dont understand how i could convert a directional number / value into X Y Z movment x a value in this context..

 

Someone please get back to me..

Oh also.. how could i use this to detect vision of a entity / a player looking at a entity / vision direction..

 

Arrow entity ray tracing?

Someone please get back to me..

Last seen on 16:33, 2. Jun 2021
Joined Nov 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You could use the sine…
Sat, 10/05/2019 - 08:21

You could use the sine/cosine functions to teleport an entity according to their facing direction. I can't test it rn, but an example could be:

Teleport entity at x + (5 * sin(angle)), y, z + (5 * cos(angle))

You might have to convert the angle to radians (°→rad), swap sine and cosine or change their signs. 5 would be how far the entity is teleported, and can be any number.

Last seen on 13:16, 14. Jul 2021
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes. Sin, Cos and Tan could…
Sat, 10/05/2019 - 18:30

Yes.

Sin, Cos and Tan could fix this problem "but"
i find that Mcreator's
sin. cos and tan math functions are glitchy and unacurate to the real value.

:O

 

Sin, Cos and Tan values are…
Sat, 10/05/2019 - 20:52

Sin, Cos and Tan values are not glitchy. They accept radiants for input as any math functions in all common programming languages do. Make sure to acknowledge that units are radians and not degrees when working with them.

Last seen on 13:16, 14. Jul 2021
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Ah yes, ok thanks..  
Thu, 10/10/2019 - 15:53

Ah yes, ok thanks..