_xiaofang/xiaofang/Assets/Obi/Scripts/Common/DataStructures/ForceZone.cs
杨号敬 bcc74f0465 add
2024-12-18 02:18:45 +08:00

41 lines
899 B
C#

using UnityEngine;
using System;
namespace Obi
{
[Serializable]
public struct ForceZone
{
public enum ForceMode
{
Force,
Acceleration,
Wind,
}
public enum ZoneType
{
Directional,
Radial,
Vortex,
Void
}
public enum DampingDirection
{
All, // damps motion in all directions
ForceDirection, // damps motion in the direction of force.
SurfaceDirection // damps motion toward/away from the surface of the zone.
}
public ZoneType type;
public ForceMode mode;
public DampingDirection dampingDir;
public float intensity;
public float minDistance;
public float maxDistance;
public float falloffPower;
public float damping;
}
}