Search found 27 matches

by water
Tue Jul 28, 2020 3:38 am
Forum: General Bullet Physics Support and Feedback
Topic: How to get the velocity of rigid body
Replies: 5
Views: 510

Re: How to get the velocity of rigid body

This seems to be the speed of each frame. What should I do if I want to get the speed per second? Thank you for your time
by water
Tue Jul 28, 2020 3:34 am
Forum: General Bullet Physics Support and Feedback
Topic: How to change Eulerian angle yzx
Replies: 2
Views: 431

Re: How to change Eulerian angle yzx

Thank you very much for your reply. I think I didn't express it clearly, but now I have found a solution.I changed the order of rotation to achieve the effect I wanted //zxy void setEulerZXY(const btScalar& yaw, const btScalar& pitch, const btScalar& roll) { btScalar halfYaw = btScalar(yaw) * btScal...
by water
Thu Jul 23, 2020 6:23 am
Forum: General Bullet Physics Support and Feedback
Topic: How to change Eulerian angle yzx
Replies: 2
Views: 431

How to change Eulerian angle yzx

In the bullet, his Euler angle seems to be YXZ. What should I do to change him into YZX,thank you very much
by water
Thu Jul 23, 2020 3:36 am
Forum: General Bullet Physics Support and Feedback
Topic: some problems in rotating the rigid body
Replies: 0
Views: 175

some problems in rotating the rigid body

Hello, I found some problems in rotating the rigid body. First, I rotate the rigid body 45 degrees around the y-axis http://m.qpic.cn/psc?/V14M18zN39zIp3/ruAMsa53pVQWN7FLK88i5kh*985lAtoTuSUtBNtWAmIKhTh.Wc2bGEgxKSdOHDZhRWlz1ScVurlTKRhK95q5JgEXrHoTbbXiBXvbnrnZXTY!/b&bo=owL4AQAAAAADB3o!&rf=viewer_4 , a...
by water
Mon Jul 13, 2020 6:43 am
Forum: General Bullet Physics Support and Feedback
Topic: How to get the velocity of rigid body
Replies: 5
Views: 510

Re: How to get the velocity of rigid body

Thank you very much, but the return value I get is btVector3, how can I convert it to speed?
by water
Thu Jul 09, 2020 1:43 am
Forum: General Bullet Physics Support and Feedback
Topic: How to get the velocity of rigid body
Replies: 5
Views: 510

How to get the velocity of rigid body

I want to get the velocity of a rigid body in motion. How can I get it? Thank you very much.
by water
Fri Jul 03, 2020 5:27 am
Forum: General Bullet Physics Support and Feedback
Topic: How to improve the rotation speed of rigid body
Replies: 0
Views: 263

How to improve the rotation speed of rigid body

I set up a rigid body with a mass of 0 and change its rotation by changing the Euler angle btCollisionShape* groundShape = new btBvhTriangleMeshShape(tMesh, useQuantization); btTransform groundTransform groundTransform.setIdentity(); groundTransform.setOrigin(btVector3(0, 0, 0)); compound->addChildS...
by water
Thu Jul 02, 2020 5:34 am
Forum: General Bullet Physics Support and Feedback
Topic: When the rigid body becomes more, the program becomes stuck
Replies: 7
Views: 592

Re: When the rigid body becomes more, the program becomes stuck

I found that the model I imported was composed of 15000 vertices, that is, 5000 faces. I think it is because there are too many faces that make it run slowly. I reprocessed the model, set the model to collapse, and now the faces are reduced to 3000. I tried to run it, and it was a lot faster. In add...
by water
Thu Jul 02, 2020 3:15 am
Forum: General Bullet Physics Support and Feedback
Topic: find a certain internal position of the 3D model
Replies: 4
Views: 373

Re: find a certain internal position of the 3D model

Here are some ideas that occur to me: Assuming your tube is closed and a small ball will not fall out once it is placed inside... (1) Place a ball randomly (with some quantization) and let it fall. If it falls out the bottom of your simulation after a certain amount of time then conclude it was not...
by water
Thu Jul 02, 2020 1:08 am
Forum: General Bullet Physics Support and Feedback
Topic: When the rigid body becomes more, the program becomes stuck
Replies: 7
Views: 592

Re: When the rigid body becomes more, the program becomes stuck

In other posts, you mentioned the reason why my program will get stuck. What should I do to avoid it. Thank you very much
by water
Thu Jul 02, 2020 12:48 am
Forum: General Bullet Physics Support and Feedback
Topic: find a certain internal position of the 3D model
Replies: 4
Views: 373

Re: find a certain internal position of the 3D model

Drleviathan, thank you very much for your help. I want to realize the movement of the ball in the imported model (similar to a tube). I want to place the ball in a certain position inside the model, and then fall under the influence of gravity and collide with the inner wall of the model. However, a...
by water
Wed Jul 01, 2020 8:20 am
Forum: General Bullet Physics Support and Feedback
Topic: find a certain internal position of the 3D model
Replies: 4
Views: 373

find a certain internal position of the 3D model

I imported a 3D model of. Obj. I want to place small balls in some positions of the model, but I can't find a certain internal position of the 3D model, as shown in the figure. What should I do? Thank you for your time http://m.qpic.cn/psc?/76b33374-4a0f-4a5d-99b2-b6eef432e262/M4X34P*UDwP*fok89st23w...
by water
Wed Jul 01, 2020 7:01 am
Forum: General Bullet Physics Support and Feedback
Topic: When the rigid body becomes more, the program becomes stuck
Replies: 7
Views: 592

Re: When the rigid body becomes more, the program becomes stuck

I have encountered this problem, can you tell me what I should do? thank you

Code: Select all

CProfileManager::dumpAll();
Error 2 error C2653: 'CProfileManager' : is not a class or namespace name
by water
Wed Jul 01, 2020 3:01 am
Forum: General Bullet Physics Support and Feedback
Topic: When the rigid body becomes more, the program becomes stuck
Replies: 7
Views: 592

When the rigid body becomes more, the program becomes stuck

I want to achieve the collision effect of small balls, but I found that when I increase the number of small balls, the program becomes stuck. What should I do to solve this problem? Thank you very much
by water
Sun Jun 28, 2020 3:47 am
Forum: General Bullet Physics Support and Feedback
Topic: How to get the internal coordinates of rigid bodies
Replies: 0
Views: 243

How to get the internal coordinates of rigid bodies

I created a cuboid rigid body, how should I get all the coordinates of its interior space. Thank you very much.