Player moves real slow on StaticMesh
Posted: Tue Apr 26, 2011 3:36 pm
I created a static mesh:
The player moves along it and collides at all the right walls. But he moves very slowly and can't jump. If I make the character spawn on a Box entity, he moves at normal speed and can jump, but if I jump off the box down to the StaticMesh I'm back to moving slowly.
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.
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.