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
The prefab to represent each physics joints
Declaration
public GameObject FingerTipKinematicBodyPrefab { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
HandPhysicsLayer
The LayerMask the physics joints will be on
Declaration
public int HandPhysicsLayer { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
HandPhysicsServiceRoot
The parent GameObject that contains all the physics joints
Declaration
public GameObject HandPhysicsServiceRoot { get; }
Property Value
Type | Description |
---|---|
GameObject |
PalmKinematicBodyPrefab
The prefab to represent the Palm physics joints
Declaration
public GameObject PalmKinematicBodyPrefab { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
UsePalmKinematicBody
Whether to make the palm a physics joint
Declaration
public bool UsePalmKinematicBody { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Disable()
Optional Disable function to pause the service.
Declaration
public override void Disable()
Overrides
Enable()
Optional Enable function to enable / re-enable the service.
Declaration
public override void Enable()
Overrides
Initialize()
The initialize function is used to setup the service once created. This method is called once all services have been registered in the Mixed Reality Toolkit.
Declaration
public override void Initialize()
Overrides
Update()
Optional Update function to perform per-frame updates of the service.
Declaration
public override void Update()