C# Class HoloToolkit.Unity.SpatialUnderstandingDllObjectPlacement.ObjectPlacementConstraint

Afficher le fichier Open project: Microsoft/HoloToolkit-Unity

Méthodes publiques

Свойство Type Description
RuleParam_Float_0 float
RuleParam_Float_1 float
RuleParam_Float_2 float
RuleParam_Int_0 int
RuleParam_Vec3_0 Vector3
Type ObjectPlacementConstraintType

Méthodes publiques

Méthode 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 méthode

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

Create_AwayFromPoint() public static méthode

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
Résultat ObjectPlacementConstraint

Create_AwayFromWalls() public static méthode

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

Create_NearCenter() public static méthode

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
Résultat ObjectPlacementConstraint

Create_NearPoint() public static méthode

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
Résultat ObjectPlacementConstraint

Create_NearWall() public static méthode

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
Résultat ObjectPlacementConstraint

Property Details

RuleParam_Float_0 public_oe property

public float RuleParam_Float_0
Résultat float

RuleParam_Float_1 public_oe property

public float RuleParam_Float_1
Résultat float

RuleParam_Float_2 public_oe property

public float RuleParam_Float_2
Résultat float

RuleParam_Int_0 public_oe property

public int RuleParam_Int_0
Résultat int

RuleParam_Vec3_0 public_oe property

public Vector3 RuleParam_Vec3_0
Résultat Vector3

Type public_oe property

public ObjectPlacementConstraintType Type
Résultat ObjectPlacementConstraintType