Physics Simulation Forum

 

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Jun 15, 2017 10:40 pm 
Offline

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


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 7:43 am 
Offline

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


Top
 Profile  
 
PostPosted: Fri Jun 16, 2017 10:29 am 
Offline

Joined: Thu Jun 15, 2017 2:04 am
Posts: 3
Thank you for your answer. I will without inertia.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot] and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group