主题
PendulumMotorUnit
摆锤运动器是一种以摆锤方式驱动对象运动的场景运动器,通过 AngularVelocity 属性设定摆动角速度,并继承 BaseMotorUnit 的完整运动控制能力,可配合 IsCycle、BackTracking、HalfCycleTim...
概览
摆锤运动器是一种以摆锤方式驱动对象运动的场景运动器,通过 AngularVelocity 属性设定摆动角速度,并继承 BaseMotorUnit 的完整运动控制能力,可配合 IsCycle、BackTracking、HalfCycleTime、ArrivalPauseTime、BackPauseTime 与 Duration 等参数配置循环、返程与停留时序,同时借助 OnMotorStart、OnMotorStop 事件感知运动状态变化。
继承自
BaseMotorUnit;可通过World:CreateUnit("PendulumMotorUnit", ...)创建;返回单个单位
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
AngularVelocity | Vector3 | [0, 0, 0] | PendulumMotorUnit 的角速度属性,以三维向量表示摆动马达单元的旋转角速度。 |
