public HelperSurfaceDescription GetHelperSurface(MeshInstanceKey key) { if (helperSurfaces == null) { return(null); } for (int i = 0; i < helperSurfaces.Length; i++) { if (helperSurfaces[i].GenerateKey() == key) { return(helperSurfaces[i]); } } return(null); }
public GeneratedMeshInstance GetMeshInstance(MeshInstanceKey key) { if (meshInstances == null) { return(null); } for (int i = 0; i < meshInstances.Length; i++) { var instanceKey = meshInstances[i].GenerateKey(); if (instanceKey == key) { return(meshInstances[i]); } } return(null); }
public MeshInstanceKey GenerateKey() { return(MeshInstanceKey.GenerateKey(MeshDescription)); }
public bool HasMeshInstance(MeshInstanceKey key) { return(GetMeshInstance(key) != null); }
public MeshInstanceKey GenerateKey() { return(MeshInstanceKey.GenerateKey(RenderSurfaceType, RenderMaterial, PhysicsMaterial)); }