Search found 3 matches
- Wed Jan 20, 2021 10:20 am
- Forum: General Bullet Physics Support and Feedback
- Topic: inertia vector from inertia tensor matrix
- Replies: 5
- Views: 5180
Re: inertia vector from inertia tensor matrix
Matrix of inertia represents how much torque is needed to make body get certain angular acceleration. In coordinates, which origin start in a center of mass the matrix is diagonal, meaning that providing torque at the origin in X axis ur will not make a body start spinning around Y or Z axes. If you...
- Tue Jan 19, 2021 7:18 am
- Forum: General Bullet Physics Support and Feedback
- Topic: inertia vector from inertia tensor matrix
- Replies: 5
- Views: 5180
Re: inertia vector from inertia tensor matrix
As you can see, the matrix is diagonal (which is good in local body coords). The most foolproof method would be to just create new vector like:
Code: Select all
btVector3 your_new_vector(matrix.m11, matrix.m22, matrix.m33)
- Mon Jan 18, 2021 1:21 pm
- Forum: General Bullet Physics Support and Feedback
- Topic: Setting up bullet physics multithreading
- Replies: 1
- Views: 8896
Setting up bullet physics multithreading
Hello, I have the following problem - im trying to set up multi-threaded calculations in BP, however, not all seems to be going as it should. Here's the init code: static CustomTaskScheduler TaskScheduler(TEXT("bullet physics task scheduler"), PhysicsThreadCount); TaskScheduler.setNumThrea...