{ //跟随点测试脚本(新版) "AbilityName": "Lucy_Wood_FollowPoint", "AbilityStacking": "Unique", "DefaultModifier": { //生成一个基于世界坐标的点(以用于被跟随者attach) "OnAdded": [ { "$type": "MoleMole.ProcessAttachPointAction", "Target": "Self", "AttachPointName": "WoodFollowPoint_02", "HierarchyType": "World", "PosRot": { "CoordsOption": "ReferTarget", "TargetOption": { "$type": "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget": "Self", "AttachPoint": "WoodFollowPoint", "IsUseAttachPointPos": true, "IsUseAttachPointRotation": true, }, "Offset": { "PositionOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "AngleOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "IsUseRotationY": true, "IsUseRotationXZ": true, } } }, //小幽灵跟随点默认追随目标 { "$type": "MoleMole.ApplyModifier", "ModifierName": "FollowModifier_01", "Target": "Self" } ] }, "Modifiers": { "FollowModifier_01": { "ModifierStacking": "Unique", "Duration": -1, "IgnoreTimeScale": false, "ModifierMixins": [ { //让GhostFollowPoint_02去跟随GhostFollowPoint "$type": "MoleMole.AttachPointFollowMixin", "AttachPointName": "WoodFollowPoint_02", //目标位置 "FollowPosRot": { "CoordsOption": "ReferTarget", "TargetOption": { "$type": "MoleMole.ConfigPosRotReferTarget", "OffsetReferTarget": "Caster", "AttachPoint" : "WoodFollowPoint", "IsUseAttachPointPos": true, "IsUseAttachPointRotation": true }, "Offset": { "PositionOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "AngleOffset": { "x": 0.0, "y": 0.0, "z": 0.0 }, "IsUseRotationY": true, "IsUseRotationXZ": true } }, //位移(PolarLerp) "PosType": "PolarLerp", "PolarRadiusRatio": 15.0, //15 5 8 "PolarAngleRatio": 5.0, "PolarHeightRatio": 8.0, //旋转 "RotType": "Lerp", "RotRatio": 8.0 } ] }, } }