Skip to content

Instantly share code, notes, and snippets.

@CameronVetter
Created July 3, 2017 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CameronVetter/54cdbc8ebf1390070bf76db3c8dd503e to your computer and use it in GitHub Desktop.
Save CameronVetter/54cdbc8ebf1390070bf76db3c8dd503e to your computer and use it in GitHub Desktop.
Add Cowboy
using System.Collections.Generic;
using HoloToolkit.Unity;
using UnityEngine;
public enum ObjectType
{
SquareBuilding,
WideBuilding,
TallBuilding,
Tree,
Tumbleweed,
Mine,
Cowboy
}
public struct PlacementQuery
{
public PlacementQuery(
SpatialUnderstandingDllObjectPlacement.ObjectPlacementDefinition placementDefinition,
Vector3 dimensions,
ObjectType objType,
List<SpatialUnderstandingDllObjectPlacement.ObjectPlacementRule> placementRules = null,
List<SpatialUnderstandingDllObjectPlacement.ObjectPlacementConstraint> placementConstraints = null)
{
PlacementDefinition = placementDefinition;
PlacementRules = placementRules;
PlacementConstraints = placementConstraints;
Dimensions = dimensions;
ObjType = objType;
}
public readonly SpatialUnderstandingDllObjectPlacement.ObjectPlacementDefinition PlacementDefinition;
public readonly Vector3 Dimensions;
public readonly ObjectType ObjType;
public readonly List<SpatialUnderstandingDllObjectPlacement.ObjectPlacementRule> PlacementRules;
public readonly List<SpatialUnderstandingDllObjectPlacement.ObjectPlacementConstraint> PlacementConstraints;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment