C# Class HoloToolkit.Unity.SpatialUnderstandingDllObjectPlacement.ObjectPlacementRule

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

Public Properties

Property Type Description
RuleParam_Float_0 float
RuleParam_Float_1 float
RuleParam_Int_0 int
RuleParam_Vec3_0 Vector3
Type ObjectPlacementRuleType

Public Methods

Method Description
Create_AwayFromOtherObjects ( float minDistance ) : ObjectPlacementRule

Constructs an object placement rule requiring the placement volume to be placed a minimum distance away from other placed objects

Create_AwayFromPosition ( Vector3 position, float minDistance ) : ObjectPlacementRule

Constructs an object placement rule requiring the placement volume to be placed a minimum distance away from the specified position.

Create_AwayFromWalls ( float minDistance, float minWallHeight = 0.0f ) : ObjectPlacementRule

Constructs an object placement rule requiring the placement volume to be placed a minimum distance away from any wall

Method Details

Create_AwayFromOtherObjects() public static method

Constructs an object placement rule requiring the placement volume to be placed a minimum distance away from other placed objects
public static Create_AwayFromOtherObjects ( float minDistance ) : ObjectPlacementRule
minDistance float Minimum distance from other placed objects
return ObjectPlacementRule

Create_AwayFromPosition() public static method

Constructs an object placement rule requiring the placement volume to be placed a minimum distance away from the specified position.
public static Create_AwayFromPosition ( Vector3 position, float minDistance ) : ObjectPlacementRule
position Vector3 Defines the center position for the center of the invalid placement space.
minDistance float Defines the radius of the invalid placement space.
return ObjectPlacementRule

Create_AwayFromWalls() public static method

Constructs an object placement rule requiring the placement volume to be placed a minimum distance away from any wall
public static Create_AwayFromWalls ( float minDistance, float minWallHeight = 0.0f ) : ObjectPlacementRule
minDistance float Minimum distance from a wall
minWallHeight float Minimum height of a wall to be considered by this rule
return ObjectPlacementRule

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_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 ObjectPlacementRuleType Type
return ObjectPlacementRuleType