Search found 33 matches

by water
Tue Apr 06, 2021 7:19 am
Forum: General Bullet Physics Support and Feedback
Topic: collision detection between rigidbody and softbody
Replies: 0
Views: 2617

collision detection between rigidbody and softbody

I want to realize the collision between rigidbody and softbody, but the collision has not been detected. This is my code, can you tell me where I am going wrong? thank you very much. softbody const btVector3 c[] = { btVector3(-1, -1, -1), btVector3(+1, -1, -1), btVector3(-1, +1, -1), btVector3(+1, +...
by water
Wed Mar 31, 2021 6:35 am
Forum: General Bullet Physics Support and Feedback
Topic: Use of api(CreateFromTriMesh)
Replies: 3
Views: 1678

Re: Use of api(CreateFromTriMesh)

Thank you very much for your reply. I tried to use btSoftBodyHelpers::CreateFromTriMesh and btSoftBodyHelpers::CreateFromConvexHull to create the softbody but it has been unsuccessful. Could you please tell me why? http://m.qpic.cn/psc?/V14M18zN39zIp3/ruAMsa53pVQWN7FLK88i5mEj2SDH6ULwIpVlyN2ezDVC1iVG...
by water
Wed Mar 24, 2021 2:28 am
Forum: General Bullet Physics Support and Feedback
Topic: Use of api(CreateFromTriMesh)
Replies: 3
Views: 1678

Use of api(CreateFromTriMesh)

static btSoftBody* CreateFromTriMesh(btSoftBodyWorldInfo& worldInfo, const btScalar* vertices, const int* triangles, int ntriangles, bool randomizeConstraints = true); Hello, can you help me explain what these parameters represent and how to obtain them? const btScalar* vertices, const int* tria...
by water
Mon Mar 15, 2021 3:31 am
Forum: General Bullet Physics Support and Feedback
Topic: Object falling when turning
Replies: 1
Views: 1494

Object falling when turning

I set up a concave sealed pipe and placed a convex ball in the pipe,
but when I turned the pipe (btQuaternion), the ball fell out of the pipe
How should I prevent this from happening?
Thank you for your help
by water
Tue Aug 11, 2020 3:10 am
Forum: General Bullet Physics Support and Feedback
Topic: The ball cannot rest
Replies: 0
Views: 1175

The ball cannot rest

I set up a small ball to move in the pipe. When it moves to a certain place, the ball can't be stationary. What should I do? Thank you very much http://m.qpic.cn/psc?/V14M18zN39zIp3/45NBuzDIW489QBoVep5mcUoJjjCOhPAyJnBmQ532RSwt9Ioc58LHezeWNbNzGIjNlgh2AVU.rq8*rFPMd9qNRae*ovreN2s5arjXXp97YPA!/b&bo=...
by water
Tue Aug 11, 2020 3:07 am
Forum: General Bullet Physics Support and Feedback
Topic: The velocity of a rigid body is always changing
Replies: 0
Views: 1050

The velocity of a rigid body is always changing

I set up a rigid ball, which falls at the bottom of the pipe under the influence of gravity. I see that it is still, but when I extract its speed, the speed is not zero. Why? Thank you very much. http://m.qpic.cn/psc?/V14M18zN39zIp3/ruAMsa53pVQWN7FLK88i5uX8lEyiAYvxTV24UWm8qvnM6BSH3ZUJfaQ4Yfa6HxgJfLe...
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: 2539

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: 1653

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(y...
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: 1653

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: 1208

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=view...
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: 2539

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: 2539

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: 1262

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: 2571

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: 2096

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...