Blender Git Loki

Git Commits -> Revision 2e55359

Revision 2e55359 by Lukas Toenne (temp_bullet_ghosts)
April 28, 2015, 15:22 (GMT)
"Init" variants of shape constructor functions for simple implicit
shapes.

These functions allow external memory allocation (using the associated
***_size values) for efficiency. An array or memory pool can then be
used to create lots of shapes and initialize them with the internal
Bullet data using the API.

Note that doing this for mesh-based shapes (triangle mesh, GImpact and
convex hull shapes) is not very useful, because they allocate data
internally and should not be created in massive numbers. The init
variants are supposed to be used for small fixed-size shapes (boxes,
spheres, etc.) which can then be combined into compound shapes.

Commit Details:

Full Hash: 2e553592ac8989c7eb8a025343a286009cacfec3
Parent Commit: c8bf0aa
Lines Changed: +49, -0

2 Modified Paths:

/intern/rigidbody/RBI_api.h (+14, -0) (Diff)
/intern/rigidbody/rb_bullet_api.cpp (+35, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021