日本語翻訳ドキュメントはサポートを終了しました

MRTK 2.6 以降のドキュメントについては、公式の Microsoft ドキュメント を参照してください。

    Show / Hide Table of Contents

    Class HandPhysicsService

    A simple service that creates KinematicRigidbodies on fingertips for physics interactions.

    Inheritance
    Object
    BaseService
    BaseExtensionService
    HandPhysicsService
    Implements
    IHandPhysicsService
    IMixedRealityExtensionService
    IMixedRealityService
    IDisposable
    Inherited Members
    BaseExtensionService.Registrar
    BaseService.DefaultPriority
    BaseService.Name
    BaseService.Priority
    BaseService.ConfigurationProfile
    BaseService.Reset()
    BaseService.LateUpdate()
    BaseService.Destroy()
    BaseService.disposed
    BaseService.Dispose()
    BaseService.Dispose(Boolean)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    BaseService.Disable()

    Enable()

    Optional Enable function to enable / re-enable the service.

    Declaration
    public override void Enable()
    Overrides
    BaseService.Enable()

    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
    BaseService.Initialize()

    Update()

    Optional Update function to perform per-frame updates of the service.

    Declaration
    public override void Update()
    Overrides
    BaseService.Update()

    Implements

    IHandPhysicsService
    IMixedRealityExtensionService
    IMixedRealityService
    System.IDisposable
    Back to top Generated by DocFX