Search found 18 matches

by LastBlow
Sat Nov 11, 2017 10:39 pm
Forum: General Bullet Physics Support and Feedback
Topic: [SOLVED] btGImpactMeshShape scrambled...
Replies: 1
Views: 1542

[SOLVED] btGImpactMeshShape scrambled...

Hi! It seems that Bullet Physics defines the vertices and triangles in a btTriangleIndexVertexArray in a way different from the way they are defined in Blender, so the mesh appears scrambled. For illustration, here below 3 cubes rendered as a btBoxShape and a cube rendered as a btGImpactMeshShape ba...
by LastBlow
Thu Mar 23, 2017 9:38 pm
Forum: General Bullet Physics Support and Feedback
Topic: [SOLVED] Best method for firing projectiles from camera?
Replies: 7
Views: 2592

Re: Best method for firing projectiles from camera?

You may want to first cast a ray and then fire. Here below is a way do it, the variable direction in the second snippet is coming from the raycast or could be the position of your camera. glm::vec3 Camera::castRay(glm::ivec2 mousePosition) { logStderr(VERBOSE, "mouse position %d, %d...\n", mousePosi...
by LastBlow
Mon Jul 11, 2016 10:48 am
Forum: General Bullet Physics Support and Feedback
Topic: [SOLVED] texture support in Bullet Physics...
Replies: 2
Views: 2192

[SOLVED] texture support in Bullet Physics...

Hi, first post here... What would be the best way to apply a texture to a soft body using Bullet Physics, say on an ellipsoid? In particular, how to make the black lines on the ellipsoid disappear? More generally, are textures supported in Bullet and how? Thank you in advance for showing me the way....