User-defined-Literals not found

Post Reply
teacup3000
Posts: 3
Joined: Thu Jun 15, 2017 2:04 am

User-defined-Literals not found

Post 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.
S1L3nCe
Posts: 50
Joined: Thu Mar 24, 2016 10:22 am
Location: France

Re: User-defined-Literals not found

Post 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.
teacup3000
Posts: 3
Joined: Thu Jun 15, 2017 2:04 am

Re: User-defined-Literals not found

Post by teacup3000 »

Thank you for your answer. I will without inertia.
Post Reply