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

fix: corrected rotation during ring fact visualisation spawning

parent 1feb7768
No related branches found
No related tags found
1 merge request!1feat: added visualisation for CircleFact; added Torus- and ConeGenerator
...@@ -219,7 +219,7 @@ public Fact SpawnRing(Fact fact) ...@@ -219,7 +219,7 @@ public Fact SpawnRing(Fact fact)
ring.transform.position = middlePoint; ring.transform.position = middlePoint;
//Rotate Ring according to normal //Rotate Ring according to normal
ring.transform.rotation = Quaternion.LookRotation(Vector3.forward, normal); // TODO TSc works? ring.transform.rotation = Quaternion.FromToRotation(Vector3.forward, normal);
//Set radii //Set radii
torus.torusRadius = radius; torus.torusRadius = radius;
......
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