{

	//跟随点测试脚本（新版）

    "AbilityName" : "TestPlayer_Ability_Tianheng_38",

    "AbilityStacking": "Unique",



    "DefaultModifier" :

    {

        //世界坐标点

        "OnAdded" :

        [

            {  

                "$type" : "MoleMole.ProcessAttachPointAction",

                "Target" : "Self",

                "AttachPointName" : "GhostFollowPoint_02",

                "HierarchyType" : "World",

                "PosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "Self",

                        "AttachPoint" : "GhostFollowPoint",

                        "IsUseAttachPointPos" : true,

                        "IsUseAttachPointRotation" : false,

                    },

                    "Offset" : 

                    {

                        "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0},

                        "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                        "IsUseRotationY" : true,

                        "IsUseRotationXZ" : false,

                    }

                }

            },



            //幽灵特效（用召唤物替代，非调试环境则注释掉）

            {

                "$type": "MoleMole.AttachEffect",

                "EffectPattern": "Eff_Unagi_Ghost_01",

                "Target": "Self",

                "AttachEffectPosRot" : 

                {

                    "CoordsOption" : "ReferTarget",

                    "TargetOption" : 

                    {

                        "$type" : "MoleMole.ConfigPosRotReferTarget",

                        "OffsetReferTarget" : "Self",

                        "AttachPoint" : "GhostFollowPoint_02",

                        "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" : false,

                    }

                },

            },



            //应用跟随Mixin

            {

                "$type":"MoleMole.ApplyModifier",

                "ModifierName":"FollowModifier",

                "Target":"Self",

            }

        ]

    },



    "Modifiers" : 

    {

        "FollowModifier" : 

        {

            "ModifierStacking" : "Unique",

            "Duration" : -1,

            "IgnoreTimeScale" : false,



            "ModifierMixins":

            [

                {

                    "$type" : "MoleMole.AttachPointFollowMixin",

                    "AttachPointName" : "GhostFollowPoint_02",



                    //这里需要新增InitPosRot，指定初始位置



                    //目标位置

                    "FollowPosRot" : 

                    {

                        "CoordsOption" : "ReferTarget",

                        "TargetOption" : 

                        {

                            "$type" : "MoleMole.ConfigPosRotReferTarget",

                            "OffsetReferTarget" : "Self",

                            "AttachPoint" : "GhostFollowPoint",

                            "IsUseAttachPointPos" : true,

                            "IsUseAttachPointRotation" : false,

                        },

                        "Offset" : 

                        {

                            "PositionOffset" : {"x":0.0, "y":0.0, "z":0.0},

                            "AngleOffset" : {"x":0.0, "y":0.0, "z":0.0},

                            "IsUseRotationY" : true,

                            "IsUseRotationXZ" : false,

                        }

                    },



                    //位移（Fixed）

                    // "PosType" : "Fixed",

                    // "PosSpeed" : 1.0,



                    //位移（PolarLerp）

                    "PosType" : "PolarLerp",

                    "PolarRadiusRatio" : 8.0,

                    "PolarAngleRatio" : 4.0,

                    "PolarHeightRatio" : 8.0,



                    //旋转

                    "RotType" : "Lerp",

                    "RotRatio" : 8.0,

                }

            ]

        },

    }

}