public CSkillCollisionShape CreateShape(Enum_SkillCollisionShapeType type, float radius, float length, float angle, Vector3 pos, Vector3 dir) { _Float3_1[0] = pos.x; _Float3_1[1] = pos.y; _Float3_1[2] = pos.z; _Float3_2[0] = dir.x; _Float3_2[1] = dir.y; _Float3_2[2] = dir.z; Common.SCounters.Instance.Increase(EnumCountType.CreateShape); IntPtr pointer = LuaDLL.SC_CreateShape((int)type, radius, length, angle, _Float3_1, _Float3_2); if (pointer == IntPtr.Zero) { return(null); } return(new CSkillCollisionShape(type, pointer)); }
public CSkillCollisionShape(Enum_SkillCollisionShapeType type, IntPtr ptr) { _type = type; _raw = ptr; }