Added Entity hierarchy and hierarchical transforms

This commit is contained in:
Simon Lübeß
2021-08-28 22:28:40 +02:00
parent ce03f7c600
commit b376525d30
7 changed files with 127 additions and 53 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ namespace GlitchyEngine.Renderer
var camera = world.GetComponent<CameraComponent>(cameraEntity);
var transform = world.GetComponent<TransformComponent>(cameraEntity);
var trans = transform.Transform;
var trans = transform.WorldTransform;
var view = trans.Invert();
var proj = camera.Projection;