Class HandPhysicsService
A simple service that creates KinematicRigidbodies on fingertips for physics interactions.
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Extensions.HandPhysics
Assembly: cs.temp.dll.dll
Syntax
public class HandPhysicsService : BaseExtensionService, IHandPhysicsService, IMixedRealityExtensionService, IMixedRealityService, IDisposable
Constructors
HandPhysicsService(String, UInt32, BaseMixedRealityProfile)
Constructor.
Declaration
public HandPhysicsService(string name, uint priority, BaseMixedRealityProfile profile)
Parameters
Type | Name | Description |
---|---|---|
String | name | Friendly name of the service. |
UInt32 | priority | Service priority. Used to determine order of instantiation. |
BaseMixedRealityProfile | profile | The service's configuration profile. |
Properties
FingerTipKinematicBodyPrefab
Declaration
public GameObject FingerTipKinematicBodyPrefab { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
HandPhysicsLayer
Declaration
public int HandPhysicsLayer { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
HandPhysicsServiceRoot
Declaration
public GameObject HandPhysicsServiceRoot { get; }
Property Value
Type | Description |
---|---|
GameObject |
PalmKinematicBodyPrefab
Declaration
public GameObject PalmKinematicBodyPrefab { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
UsePalmKinematicBody
Declaration
public bool UsePalmKinematicBody { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Disable()
Declaration
public override void Disable()
Overrides
Enable()
Declaration
public override void Enable()
Overrides
Initialize()
Declaration
public override void Initialize()
Overrides
Update()
Declaration
public override void Update()
Overrides
Implements
IDisposable