Found an error in the engine and i thought i might post it here so someone who knows what there doing could change it. Inside FullCharecterObject.cs its PhysicObjectTypes is set to PhysicObjectTypes.CHARECTEROBJECT. This causes an illegal cast exception thou, when you try to add an IObject, using FullCharecterObject, to the world.
Inside of BepuPhysicWorld.SddObject() method, the FullCharecterObject is read as a CharecterObject and then cast as such. To me, it looks as though another enum value is needed to support the FullCharecterObject.
Just informed that its not supported. So the error is now nil.
Also, on a side note, to slightly speed up the AddObject() and RemoveObject() methods, the tests inside the if statements should be done with "is
", and the the casts should be done with "obj as