rigidbody: Add DNA/RNA/BKE infrastructure for the rigid body sim
authorSergej Reich <sergej.reich@googlemail.com>
Wed, 23 Jan 2013 05:56:22 +0000 (05:56 +0000)
committerSergej Reich <sergej.reich@googlemail.com>
Wed, 23 Jan 2013 05:56:22 +0000 (05:56 +0000)
commit27601aaf017263bf356dce37a4b90a764a819ee7
tree8fb82ff4a5681a93a77883603786d730da13b4c4
parent5c85deb28570a911e825af5923a7939ca5781ee7
rigidbody: Add DNA/RNA/BKE infrastructure for the rigid body sim

This is just the basic structure, the simulation isn't hooked up yet.

Scenes get a pointer to a rigid body world that holds rigid body objects.
Objects get a pointer to a rigdid body object.

Both rigid body world and objects aren't used directly in the simulation
and only hold information to create the actual physics objects.

Physics objects are created when rigid body objects are validated.
In order to keep blender and bullet objects in sync care has to be taken
to either call appropriate set functions or flag objects for validation.

Part of GSoC 2010 and 2012.
Authors: Joshua Leung (aligorith), Sergej Reich (sergof)
27 files changed:
source/blender/CMakeLists.txt
source/blender/SConscript
source/blender/blenkernel/BKE_rigidbody.h [new file with mode: 0644]
source/blender/blenkernel/BKE_scene.h
source/blender/blenkernel/CMakeLists.txt
source/blender/blenkernel/SConscript
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenkernel/intern/object.c
source/blender/blenkernel/intern/rigidbody.c [new file with mode: 0644]
source/blender/blenkernel/intern/scene.c
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/editors/object/object_add.c
source/blender/editors/object/object_relations.c
source/blender/makesdna/DNA_object_types.h
source/blender/makesdna/DNA_rigidbody_types.h [new file with mode: 0644]
source/blender/makesdna/DNA_scene_types.h
source/blender/makesdna/intern/makesdna.c
source/blender/makesrna/RNA_access.h
source/blender/makesrna/RNA_enum_types.h
source/blender/makesrna/SConscript
source/blender/makesrna/intern/CMakeLists.txt
source/blender/makesrna/intern/makesrna.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_rigidbody.c [new file with mode: 0644]
source/blender/makesrna/intern/rna_scene.c