Skip to content
Snippets Groups Projects
Commit e3e74855 authored by Tobias Schöner's avatar Tobias Schöner
Browse files

Ring visualisation now always faces upwards

parent cf14ee66
No related branches found
No related tags found
1 merge request!1feat: added visualisation for CircleFact; added Torus- and ConeGenerator
......@@ -219,7 +219,10 @@ public Fact SpawnRing(Fact fact)
ring.transform.position = middlePoint;
//Rotate Ring according to normal
ring.transform.up = normal;
if (normal.y < 0) // if normal faces downwards use inverted normal instead
ring.transform.up = -normal;
else
ring.transform.up = normal;
//Set radii
foreach (var torus in tori)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment