Code: Select all
Vector3[] staticTriangleVertices;
int[] staticTriangleIndices;
TriangleMesh.GetVerticesAndIndicesFromModel(Models.LEVEL01, out staticTriangleVertices, out staticTriangleIndices);
StaticMesh staticMesh = new StaticMesh(
staticTriangleVertices,
staticTriangleIndices,
new AffineTransform(
Matrix3X3.Identity,
Vector3.Zero));
staticMesh.Sidedness = TriangleSidedness.Counterclockwise;
space.Add(staticMesh);
BepuDebug.Add(staticMesh);
Changing the acceleration has no effect on movement. (Unless I'm standing on a Box entity.)
Any ideas? (I'm using the CharacterController for my player.)
Edit: I just tested out the StaticMeshDemo and it's exactly the same. Can't jump on terrain, but you can jump on boxes. I guess I have to look at how IsSupported is calculated.