Entity isn't rotating right
Posted: Wed Apr 10, 2013 11:42 pm
Hey, me again. I'm having a little bit of issue with a couple of rotating claws. In Blender, they're both exported with the origin as the point around which I wish to rotate, which isn't the exact center of the model. On a normal day, this would be fixed by setting LocalOffset to be the values offsetting the model in model space (in Blender), which has always worked before, but isn't working for these models (doing this worked for a different model, which I just put in, so I know it usually works). I suspect the issue is the claws have a large, boxy, clubbish looking "weight" on the end of them, for visual effect (here's a picture for reference:)

I figure that Bepu does different mass/volume distribution calculations than Blender does, and since the centers of mass differ (since Blender just does an averaging of the verts, I think), the offsets I need differ, but I've been unable to find the offsets. I thought they were just dumped to entity.Position, but that's modified when I add the desired position of the entity, and the entity starts in the right place and has no LocalOffset (unless I specify one, but it doesn't work with or without). If it's relevant, the entities are kinematic and rotated using entity.AngularVelocity.
tl;dr What determines the point of rotation for a kinematic entity (assuming no LocalOffset)?

I figure that Bepu does different mass/volume distribution calculations than Blender does, and since the centers of mass differ (since Blender just does an averaging of the verts, I think), the offsets I need differ, but I've been unable to find the offsets. I thought they were just dumped to entity.Position, but that's modified when I add the desired position of the entity, and the entity starts in the right place and has no LocalOffset (unless I specify one, but it doesn't work with or without). If it's relevant, the entities are kinematic and rotated using entity.AngularVelocity.
tl;dr What determines the point of rotation for a kinematic entity (assuming no LocalOffset)?