Page 1 of 1

add concave shapes and Gears to 3D engine

Posted: Sun Aug 11, 2013 4:19 pm
by applePi
i suggest a concave shapes for the physics engine so we can use Gears and holes dynamically, an example of a dynamic hole i have posted here before
http://www.purebasic.fr/english/viewtop ... 15#p414129
search
concave = xCreateTorus(16, 1, 0.5)
xEntityAddConcaveShape(concave, 100.0)


a possible usage: a more natural approach than tranfering force like this
http://www.purebasic.fr/english/viewtop ... 36&t=55915

Re: add concave shapes and Gears to 3D engine

Posted: Sun Aug 11, 2013 5:00 pm
by DK_PETER
+1

Re: add concave shapes and Gears to 3D engine

Posted: Sun Aug 11, 2013 7:06 pm
by Olby
Bullet (physics engine used in PB) doesn't have a built in support for dynamic concave shapes. What you need instead is a dynamic compound object. These are built by combining a number of smaller primitives (spheres, cubes, cylinders, etc.) into one big physics collision body.
Bullet Reference Manual wrote:The btCompoundShape allows to store multiple other btCollisionShapes This allows for moving concave collision objects.
http://bulletphysics.com/Bullet/BulletF ... ml#details

Re: add concave shapes and Gears to 3D engine

Posted: Sun Apr 20, 2014 7:51 pm
by Bananenfreak
+1