Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by TAPgiles

I finally figured it out!!

The basic idea is... actually rather complicated:
- Use the camera transform to emit an object at the same position and orientation as the current view.
- On that object, have 2 tags: one at the centre and one further out. Subtract the outer position from the centre position to get the "direction" it is facing.
- Use a second object with a "look at" rotator and tell it what direction to face, *after* splitting and recombining to only use the X and Z component of the direction. This means it won't try to look up/down.
- Use an angle sensor on that object to find out what Y rotation it has.

But it's all in that linked logic piece anyway. Hope this helps. ^^

Oh dear! Your browser is either unsupported, or there has been a problem loading the page.