Update GPUClothSimulator
parent
5cde20572e
commit
963e4a792a
|
@ -262,79 +262,4 @@ public class SerializableVertexMapping {
|
||||||
public int fullMeshIndex;
|
public int fullMeshIndex;
|
||||||
public int physicsMeshIndex;
|
public int physicsMeshIndex;
|
||||||
}
|
}
|
||||||
-----
|
|
||||||
|
|
||||||
# Structs
|
|
||||||
## Sphere Collider
|
|
||||||
```csharp
|
|
||||||
public struct CollidableSphereStruct {
|
|
||||||
public Vector3 center;
|
|
||||||
public float radius;
|
|
||||||
public float friction;
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
## Box Collider
|
|
||||||
```Csharp
|
|
||||||
public struct CollidableCubeStruct {
|
|
||||||
public Vector3 center;
|
|
||||||
public Vector3 rotation;
|
|
||||||
public Vector3 extent;
|
|
||||||
public float friction;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
## Plane Collider
|
|
||||||
```Csharp
|
|
||||||
public struct CollidablePlaneStruct {
|
|
||||||
public Vector3 position;
|
|
||||||
public Vector3 rotation;
|
|
||||||
public Vector3 scale;
|
|
||||||
public Vector3 normal;
|
|
||||||
public float friction;
|
|
||||||
public float thickness;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
## Capsule Collider
|
|
||||||
```csharp
|
|
||||||
public struct CollidableCapsuleStruct {
|
|
||||||
public Vector3 center;
|
|
||||||
public Vector3 rotation;
|
|
||||||
public Vector3 direction;
|
|
||||||
public float radius;
|
|
||||||
public float length;
|
|
||||||
public float friction;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
## Mesh Colliders
|
|
||||||
```Csharp
|
|
||||||
public struct CollidableMeshStruct {
|
|
||||||
public int vertexStartIndex;
|
|
||||||
public int triangleStartIndex;
|
|
||||||
public int vertexCount;
|
|
||||||
public int triangleCount;
|
|
||||||
public float friction;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
## Sphere Collider Pairs
|
|
||||||
```Csharp
|
|
||||||
public struct CollidableSpherePairStruct {
|
|
||||||
public Vector3 centerA;
|
|
||||||
public float radiusA;
|
|
||||||
public Vector3 centerB;
|
|
||||||
public float radiusB;
|
|
||||||
public float friction;
|
|
||||||
}
|
|
||||||
```
|
|
||||||
-----
|
|
||||||
|
|
||||||
# Enums
|
|
||||||
## Damping Methods
|
|
||||||
+ public enum DampingMethod { noDamping, simpleDamping, smartDamping, Weightmap }
|
|
||||||
|
|
||||||
## Bending Methods
|
|
||||||
+ public enum BendingMethod { DihedralBending, isometricBending }
|
|
||||||
|
|
||||||
## Gravity Direction
|
|
||||||
+ public enum GravityDirection { XPlus, YPlus, ZPlus, XMinus, YMinus, ZMinus }
|
|
||||||
|
|
||||||
## Work Group Size
|
|
||||||
+ public enum WorkGroupSize { X8 = 8, X16 = 16, X32 = 32, X64 = 64, X128 = 128, X256 = 256, X512 = 512 }
|
|
Loading…
Reference in New Issue
Block a user