addGeom ( geom ) Triangle Mesh Shape Īnother non-primitive collision shape. getGeom ( 0 ) shape3 = BulletConvexHullShape () shape3. findAllMatches ( '**/+GeomNode' ) geomNode = geomNodes. addArray () # Add all vertices which can be found in a Geom object geomNodes = loader. addPoint ( Point3 ( 2, 2, 0 )) # Add several vertices with a single call shape2 = BulletConvexHullShape () shape2. Not possible to find a good approximation of the objects shape using collisionĬonvex hull shapes can be created is several ways:įrom panda3d.bullet import BulletConvexHullShape # Add each vertex separately shape1 = BulletConvexHullShape () shape1. Convex hull shapes should be used for dynamic objects, if it is When released the membrane will assume the shape of theĬonvex hull. Hull is an elastic membrane or balloon under pressure which is placed around a The first of the non-primitive collision shapes. makePos ( Point3 ( 1, 1, - 0.5 ))) Convex Hull Shape
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |