C# Класс HoloToolkit.Unity.SpatialUnderstandingDllObjectPlacement.ObjectPlacementConstraint

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
RuleParam_Float_0 float
RuleParam_Float_1 float
RuleParam_Float_2 float
RuleParam_Int_0 int
RuleParam_Vec3_0 Vector3
Type ObjectPlacementConstraintType

Открытые методы

Метод Описание
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.

Описание методов

Create_AwayFromOtherObjects() публичный статический Метод

Constructs an object placement constraint requesting that the placement volume be placed away from other place objects.
public static Create_AwayFromOtherObjects ( ) : ObjectPlacementConstraint
Результат ObjectPlacementConstraint

Create_AwayFromPoint() публичный статический Метод

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
Результат ObjectPlacementConstraint

Create_AwayFromWalls() публичный статический Метод

Constructs an object placement constraint requesting that the placement volume be placed away from all walls.
public static Create_AwayFromWalls ( ) : ObjectPlacementConstraint
Результат ObjectPlacementConstraint

Create_NearCenter() публичный статический Метод

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
Результат ObjectPlacementConstraint

Create_NearPoint() публичный статический Метод

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
Результат ObjectPlacementConstraint

Create_NearWall() публичный статический Метод

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
Результат ObjectPlacementConstraint

Описание свойств

RuleParam_Float_0 публичное свойство

public float RuleParam_Float_0
Результат float

RuleParam_Float_1 публичное свойство

public float RuleParam_Float_1
Результат float

RuleParam_Float_2 публичное свойство

public float RuleParam_Float_2
Результат float

RuleParam_Int_0 публичное свойство

public int RuleParam_Int_0
Результат int

RuleParam_Vec3_0 публичное свойство

public Vector3 RuleParam_Vec3_0
Результат Vector3

Type публичное свойство

public ObjectPlacementConstraintType Type
Результат ObjectPlacementConstraintType