新增动态水物理插件

This commit is contained in:
Bob.Song
2026-02-27 17:44:21 +08:00
parent a6e061d9ce
commit 60744d113d
2218 changed files with 698551 additions and 189 deletions

View File

@@ -0,0 +1,52 @@
// ╔════════════════════════════════════════════════════════════════╗
// ║ Copyright © 2025 NWH Coding d.o.o. All rights reserved. ║
// ║ Licensed under Unity Asset Store Terms of Service: ║
// ║ https://unity.com/legal/as-terms ║
// ║ Use permitted only in compliance with the License. ║
// ║ Distributed "AS IS", without warranty of any kind. ║
// ╚════════════════════════════════════════════════════════════════╝
#if UNITY_EDITOR
#region
using NWH.NUI;
using NWH.DWP2.ShipController;
using UnityEditor;
using UnityEngine;
#endregion
namespace NWH.DWP2.WaterObjects
{
/// <summary>
/// Property drawer for Rudder.
/// </summary>
[CustomPropertyDrawer(typeof(Rudder))]
public class RudderDrawer : DWP2NUIPropertyDrawer
{
/// <summary>
/// Draws property drawer for Rudder.
/// </summary>
public override bool OnNUI(Rect position, SerializedProperty property, GUIContent label)
{
if (!base.OnNUI(position, property, label))
{
return false;
}
drawer.Field("name");
drawer.Field("rudderTransform");
drawer.Field("maxAngle");
drawer.Field("rotationSpeed");
drawer.Field("localRotationAxis");
drawer.EndSubsection();
drawer.EndProperty();
return true;
}
}
}
#endif