Class SpatialAwarenessPlanarObject
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SpatialAwareness
Assembly: cs.temp.dll.dll
Syntax
public class SpatialAwarenessPlanarObject : BaseSpatialAwarenessObject, IMixedRealitySpatialAwarenessObject
Properties
Collider
The BoxCollider associated with this plane's GameObject.
Declaration
public BoxCollider Collider { get; set; }
Property Value
Type | Description |
---|---|
BoxCollider |
SurfaceType
The type of surface (ex: wall) represented by this object.
Declaration
public SpatialAwarenessSurfaceTypes SurfaceType { get; }
Property Value
Type | Description |
---|---|
SpatialAwarenessSurfaceTypes |
Methods
CreateSpatialObject(Vector3, Vector3, Quaternion, Int32, String, Int32, SpatialAwarenessSurfaceTypes)
Creates a SpatialAwarenessPlanarObject.
Declaration
public static SpatialAwarenessPlanarObject CreateSpatialObject(Vector3 center, Vector3 size, Quaternion rotation, int layer, string name, int planeId, SpatialAwarenessSurfaceTypes surfaceType = SpatialAwarenessSurfaceTypes.Unknown)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | center | |
Vector3 | size | |
Quaternion | rotation | |
Int32 | layer | |
String | name | |
Int32 | planeId | |
SpatialAwarenessSurfaceTypes | surfaceType |
Returns
Type | Description |
---|---|
SpatialAwarenessPlanarObject | SpatialAwarenessPlanarObject containing the fields that describe the plane. |