StaticGroup
Posted: Mon Jun 04, 2012 11:26 pm
Hi,
I have a map built out of a bunch of models, each which I create as StaticMesh objects and then I add all those instances to a StaticGroup for improved performance. (As I have read on one of the other forums). What I can't understand though, if I add new dynamic physical objects (for testing I just use a Box prefab for now) it will report that a NaN transform was encountered. If I remove the StaticMeshes and StaticGroup, and just add a plane object (Box prefab with 1000,1,1000 dimensions), I never get a NaN exception.
Happens in the BEPUphysics.Entities.Entity class
Error occurs at method:
line:
Any help or suggestions would be appreciated.
Jaco
I have a map built out of a bunch of models, each which I create as StaticMesh objects and then I add all those instances to a StaticGroup for improved performance. (As I have read on one of the other forums). What I can't understand though, if I add new dynamic physical objects (for testing I just use a Box prefab for now) it will report that a NaN transform was encountered. If I remove the StaticMeshes and StaticGroup, and just add a plane object (Box prefab with 1000,1,1000 dimensions), I never get a NaN exception.
Happens in the BEPUphysics.Entities.Entity class
Error occurs at method:
Code: Select all
public void ApplyLinearImpulse(ref Vector3 impulse)
Code: Select all
linearVelocity.Validate();
Jaco