private void updateGhostPosition() { var list = new List <WorldObject>(); list.AddRange(World.WorldObjectList.Where(o => o != selectedWorldObject)); var transformation = worldTileSnapper.CalculateSnap(selectedWorldObject.ObjectType.TileData, selectedWorldObject.Transformation, list); ghost.WorldMatrix = transformation.CreateMatrix(); }
private void updateGhostPosition() { var raycastPosition = raycastGroundPlaneCursor(); Transformation transformation = worldTileSnapper.CalculateSnap(PlaceType.TileData, new Transformation(raycastPosition), World.WorldObjectList); ghost.WorldMatrix = transformation.CreateMatrix(); }