How the cospaces interpret the degrees

Hi, I hope you’re doing well.

@Nikolay these pictures bellow explain this question

122

Thank you.

2 Likes

The rotation values in inspector are Euler angles in degrees.
The direction CoBlock returns the vector of where the object is looking (it is axis OY). Unfortunately, there is no way of restoring Euler angles from it.

If you want the stone to print the rotation angles of a bird so you can enter them in inspector, you can use following Typescript code:

let stone = Scene.getItem(*ENTER STONE NAME*)
let bird = Scene.getItem(*ENTER BIRD NAME*)
Time.scheduleRepeating(()=>{
  stone.speech = bird.transform.rotation.getEulerAngles().mult(180 / Math.PI).toString()     
})
5 Likes

Again, I think it would be in CoSpaces best interests to simplify the manipulation of rotation for students, and keep the units consistent.

Geoff @ TechLeap

2 Likes