Page 1 of 1

User-defined-Literals not found

Posted: Thu Jun 15, 2017 10:40 pm
by teacup3000
Hello.
I wanted do create collision for my models but when I run my program a window popps up that says the program has reached a breakpoint trigger.
While debugging I found something odd. In the bullet file btTriangleMeshShape.h there is a Method:

Code: Select all

void	btTriangleMeshShape::calculateLocalInertia(btScalar mass,btVector3& inertia) const
{
	(void)mass;
	//moving concave objects not supported
	btAssert(0);
	inertia.setValue(btScalar(0.),btScalar(0.),btScalar(0.));
}
The line btAssert(0) is red and telling me that the "user defined literal (btAssert) is not found". I did not change anything in this file so I'm really confused whats going on here.
Is my file broken or is it just visual studio that does confusing things?

And if it's my hit box that is concave, what can I do that it is not concave?

Thank you for your answsers.

Re: User-defined-Literals not found

Posted: Fri Jun 16, 2017 7:43 am
by S1L3nCe
Hi,

This is an "assert always", bhvTriangleMesh object is static only.
Use ConvexHullShape instead to create dynamic objects from mesh file or just dont compute inertia when your object is static.

Re: User-defined-Literals not found

Posted: Fri Jun 16, 2017 10:29 am
by teacup3000
Thank you for your answer. I will without inertia.