Collisions editing progress

This commit is contained in:
dexy
2020-01-13 16:25:52 +11:00
Unverified
parent 8f903610bf
commit 741cf0ecfc
5 changed files with 230 additions and 57 deletions
+9 -6
View File
@@ -3267,13 +3267,16 @@ namespace CodeWalker.Rendering
rbginst.Inst.Renderable = rndbc;
rbginst.Inst.Orientation = orientation;
rbginst.Inst.Scale = scale;
foreach (var geom in rndbc.Geometries)
if (rndbc.Geometries != null)
{
if (geom == null) continue;
rbginst.Geom = geom;
rbginst.Inst.Position = position + orientation.Multiply(geom.CenterGeom * scale);
rbginst.Inst.CamRel = rbginst.Inst.Position - camera.Position;
shaders.Enqueue(ref rbginst);
foreach (var geom in rndbc.Geometries)
{
if (geom == null) continue;
rbginst.Geom = geom;
rbginst.Inst.Position = position + orientation.Multiply(geom.CenterGeom * scale);
rbginst.Inst.CamRel = rbginst.Inst.Position - camera.Position;
shaders.Enqueue(ref rbginst);
}
}
if (RenderedBoundCompsListEnable) //for later hit tests