I'm working on a script that makes a rigid body simulation, I'm interested to get the final position and rotation of my objects but I have not idea how to do considering that I'm pretty new in the using bpy. Anyone has an idea how to code it? To be clear on the data that I wanna get i'll achieve a screenshot from blender panel. Thank you!
The data is utilized to establish the starting point of the object. When using constraints or rigid body physics, these values are employed to populate a transform matrix that is utilized in simulations. To obtain the transform matrix, use either the
matrix_local (if related to a parent). The values can be accessed using
obj = bpy.data.objects["Your object name"]