# mathexpr **Repository Path**: tinxing/mathexpr ## Basic Information - **Project Name**: mathexpr - **Description**: Math Expression for PlayMaker in Unity3D. - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-03-25 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #mathexpr for playmaker ### Playmaker 数学表达式支持 #### Math Expression 大概布局 数学表达式:Math Expression [speed * time + initDistance + 2] 目标变量:Variable [distance] #### 数学表达式支持函数 | 函数 | 意义 | | :---------------------- | ----- | | sqrt | 开根号 | | abs | 绝对值 | | ln | 常对数函数 | | floor | 向下取整 | | ceiling | 向上取整 | | round | 四舍五入 | | sin, cos, tan | 三角函数 | | asin, acos, atan, atan2 | 反三角函数 | | min, max | 最大,小值 | | rnd | 随机值 | | | | 测试表达式时: 如果表达式有错误,或者使用的变量在 FSM 中没有定义,可以检测出来。表达式写完后,一定要测试正确性。 PlayMakerUtils_FsmVar.cs 里面函数 `ApplyValueToFsmVar` 有 Bug,本地已修正。