meta data for this page
📚 差别
这里会显示出您选择的修订版和当前版本之间的差别。
| 两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
| scripting:world:model [2024/12/25 06:03] – bibiboxs | scripting:world:model [2025/08/11 23:17] (当前版本) – bibiboxs | ||
|---|---|---|---|
| 行 16: | 行 16: | ||
| ## Event | ## Event | ||
| - | ### OnModelDamage( model, damage, from, type, isImmunity ) | + | ### OnModelDamage( model, damage, from, type, isImmunity, localHitPos |
| > 当模型对象被攻击时调用,**攻击检测应该优先考虑此事件**。 | > 当模型对象被攻击时调用,**攻击检测应该优先考虑此事件**。 | ||
| 行 528: | 行 528: | ||
| ```javascript | ```javascript | ||
| function model.RotateTo( euler: Vector, time: float ) | function model.RotateTo( euler: Vector, time: float ) | ||
| + | ``` | ||
| + | |||
| + | |||
| + | |||
| + | ### model.RotateAroundTo() | ||
| + | |||
| + | > 将当前模型对象过渡旋转到目标欧拉角(基于锚点)。 | ||
| + | > | ||
| + | > **(停止过渡:不填写任何参数,执行一次)** | ||
| + | |||
| + | ```javascript | ||
| + | function model.RotateAroundTo( pivot: Vector, euler: Vector, time: float ) | ||
| ``` | ``` | ||
| 行 541: | 行 553: | ||
| function model.ScaleTo( scale: Vector, time: float ) | function model.ScaleTo( scale: Vector, time: float ) | ||
| ``` | ``` | ||
| + | |||
| + | |||