48 lines
952 B
C#
48 lines
952 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace IK
|
|
{
|
|
public class IKCollisionData : ScriptableObject
|
|
{
|
|
public Parameter[] ParameterArray;
|
|
public bool IsHeightScale;
|
|
public struct RuntimeParameter
|
|
{
|
|
public Parameter.CollisionType Type;
|
|
public Vector3 Offset;
|
|
public bool IsBodyScale;
|
|
public float Param1;
|
|
|
|
public float Radius { get; }
|
|
}
|
|
|
|
[Serializable]
|
|
public class Parameter
|
|
{
|
|
public CollisionType Type;
|
|
public string LinkBoneName;
|
|
public Vector3 Offset;
|
|
public Scene SceneType;
|
|
public float Param1;
|
|
|
|
public enum CollisionType
|
|
{
|
|
Sphere = 0
|
|
}
|
|
|
|
public enum Scene
|
|
{
|
|
Event = 1,
|
|
Live = 2,
|
|
All = 65535
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|