add concave shapes and Gears to 3D engine

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

add concave shapes and Gears to 3D engine

Post 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
User avatar
DK_PETER
Addict
Addict
Posts: 904
Joined: Sat Feb 19, 2011 10:06 am
Location: Denmark
Contact:

Re: add concave shapes and Gears to 3D engine

Post by DK_PETER »

+1
Current configurations:
Ubuntu 20.04/64 bit - Window 10 64 bit
Intel 6800K, GeForce Gtx 1060, 32 gb ram.
Amd Ryzen 9 5950X, GeForce 3070, 128 gb ram.
Olby
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Jan 12, 2009 10:33 am
Contact:

Re: add concave shapes and Gears to 3D engine

Post 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
Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64)
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: add concave shapes and Gears to 3D engine

Post by Bananenfreak »

+1
Image
Post Reply