ConstantForceEffect 类

定义

沿向量应用恒定力的力回馈效果。

public ref class ConstantForceEffect sealed
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ConstantForceEffect final
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ConstantForceEffect
function ConstantForceEffect()
Public NotInheritable Class ConstantForceEffect
继承
Object Platform::Object IInspectable ConstantForceEffect
属性
实现

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

构造函数

ConstantForceEffect()

创建 ConstantForceEffect 的实例。

属性

Gain

指定减小效果力的百分比。

State

力回馈效果的当前状态。

方法

SetParameters(Vector3, TimeSpan)

设置常量力回馈效果的参数。

SetParametersWithEnvelope(Vector3, Single, Single, Single, TimeSpan, TimeSpan, TimeSpan, TimeSpan, UInt32)

设置效果的参数,并为效果设置信封。

Start()

启动力回馈效果。

Stop()

停止力回馈效果。

适用于

另请参阅