I know there is a bug tracker: I apologize but I do not have time to register and issue a new ticket. I found nothing on the forums nor in the codeplex page so I'm posting here. Feel free to move or delete this post.
If I do Space.update() but Space is empty (with no entities) BEPU crash with no redemption.
How to reproduce:
In the project BEPUDemo (0.16.0, commit d9ef57fe4628), on the class Demo, edit the update function this way (this is a quick and dirty way but it work):
Code: Select all
public virtual void Update(float dt)
{
if (Space.Entities.Count > 0)
{
for (int i = Space.Entities.Count -1; i >= 0 ; i--)
{
Space.Remove(Space.Entities[i]);
}
}
/* rest of the function..*/
}
Is there any rule which say Space must have at least an object? Because I have an editor for my project which use Space and it's empty at the beginning, only after the user create a new entity on my editor the program add something to the Space class.
Thank you for your time.