C# Class HoloToolkit.Unity.SpatialUnderstandingDllObjectPlacement.ObjectPlacementConstraint

显示文件 Open project: Microsoft/HoloToolkit-Unity

Public Properties

Property Type Description
RuleParam_Float_0 float
RuleParam_Float_1 float
RuleParam_Float_2 float
RuleParam_Int_0 int
RuleParam_Vec3_0 Vector3
Type ObjectPlacementConstraintType

Public Methods

Method Description
Create_AwayFromOtherObjects ( ) : ObjectPlacementConstraint

Constructs an object placement constraint requesting that the placement volume be placed away from other place objects.

Create_AwayFromPoint ( Vector3 position ) : ObjectPlacementConstraint

Constructs an object placement constraint requesting that the placement volume be placed away from the specified position.

Create_AwayFromWalls ( ) : ObjectPlacementConstraint

Constructs an object placement constraint requesting that the placement volume be placed away from all walls.

Create_NearCenter ( float minDistance = 0.0f, float maxDistance = 0.0f ) : ObjectPlacementConstraint

Constructs an object placement constraint requesting that the placement volume be placed near the center of the playspace.

Create_NearPoint ( Vector3 position, float minDistance = 0.0f, float maxDistance = 0.0f ) : ObjectPlacementConstraint

Constructs an object placement constraint requesting that the placement volume be placed no closer than minDistance and no further than maxDistance from the specified position.

Create_NearWall ( float minDistance = 0.0f, float maxDistance = 0.0f, float minWallHeight = 0.0f, bool includeVirtualWalls = false ) : ObjectPlacementConstraint

Constructs an object placement constraint requesting that the placement volume be placed no closer than minDistance and no further than maxDistance from a wall.

Method Details

Create_AwayFromOtherObjects() public static method

Constructs an object placement constraint requesting that the placement volume be placed away from other place objects.
public static Create_AwayFromOtherObjects ( ) : ObjectPlacementConstraint
return ObjectPlacementConstraint

Create_AwayFromPoint() public static method

Constructs an object placement constraint requesting that the placement volume be placed away from the specified position.
public static Create_AwayFromPoint ( Vector3 position ) : ObjectPlacementConstraint
position Vector3 The center point from switch minDistance and maxDistance define their volumes
return ObjectPlacementConstraint

Create_AwayFromWalls() public static method

Constructs an object placement constraint requesting that the placement volume be placed away from all walls.
public static Create_AwayFromWalls ( ) : ObjectPlacementConstraint
return ObjectPlacementConstraint

Create_NearCenter() public static method

Constructs an object placement constraint requesting that the placement volume be placed near the center of the playspace.
public static Create_NearCenter ( float minDistance = 0.0f, float maxDistance = 0.0f ) : ObjectPlacementConstraint
minDistance float The minimum distance from the center to place the object
maxDistance float The maximum distance from the center to place the object
return ObjectPlacementConstraint

Create_NearPoint() public static method

Constructs an object placement constraint requesting that the placement volume be placed no closer than minDistance and no further than maxDistance from the specified position.
public static Create_NearPoint ( Vector3 position, float minDistance = 0.0f, float maxDistance = 0.0f ) : ObjectPlacementConstraint
position Vector3 The center point from switch minDistance and maxDistance define their volumes
minDistance float The minimum distance from position to place the object
maxDistance float The maximum distance from position to place the object
return ObjectPlacementConstraint

Create_NearWall() public static method

Constructs an object placement constraint requesting that the placement volume be placed no closer than minDistance and no further than maxDistance from a wall.
public static Create_NearWall ( float minDistance = 0.0f, float maxDistance = 0.0f, float minWallHeight = 0.0f, bool includeVirtualWalls = false ) : ObjectPlacementConstraint
minDistance float The minimum distance from position to place the object
maxDistance float The maximum distance from position to place the object
minWallHeight float Minimum height of a wall to be considered by this rule
includeVirtualWalls bool Indicates virtual walls should be considered in this query
return ObjectPlacementConstraint

Property Details

RuleParam_Float_0 public_oe property

public float RuleParam_Float_0
return float

RuleParam_Float_1 public_oe property

public float RuleParam_Float_1
return float

RuleParam_Float_2 public_oe property

public float RuleParam_Float_2
return float

RuleParam_Int_0 public_oe property

public int RuleParam_Int_0
return int

RuleParam_Vec3_0 public_oe property

public Vector3 RuleParam_Vec3_0
return Vector3

Type public_oe property

public ObjectPlacementConstraintType Type
return ObjectPlacementConstraintType