rope处理

This commit is contained in:
2026-02-22 18:34:37 +08:00
parent 54c8439024
commit 06bf72973c
45 changed files with 10342 additions and 502 deletions

View File

@@ -0,0 +1,39 @@
using System;
namespace PhysicsTools
{
[Serializable]
public class SegmentProperties
{
[Serializable]
public enum Type
{
CYLINDER = 0,
BOX = 1
}
public Type type;
public SegmentPropertiesBase properties;
public SegmentProperties()
{
properties = new SegmentPropertiesCylinder();
type = Type.CYLINDER;
}
public void setType(Type t)
{
switch (t)
{
case Type.BOX:
properties = new SegmentPropertiesBox();
break;
case Type.CYLINDER:
properties = new SegmentPropertiesCylinder();
break;
}
type = t;
}
}
}