28 lines
409 B
C#
28 lines
409 B
C#
using System;
|
|
|
|
namespace PhysicsTools
|
|
{
|
|
[Serializable]
|
|
public class SegmentPropertiesBase
|
|
{
|
|
public float massPerUnitLength;
|
|
|
|
public int solverCount;
|
|
|
|
public float length;
|
|
|
|
public float linearDamping;
|
|
|
|
public float angularDamping;
|
|
|
|
public SegmentPropertiesBase()
|
|
{
|
|
massPerUnitLength = 10f;
|
|
solverCount = 255;
|
|
length = 1f;
|
|
linearDamping = 0.01f;
|
|
angularDamping = 0.01f;
|
|
}
|
|
}
|
|
}
|