• Is there a way to move an objects Centre of Mass?
    3 replies, posted
Hey there! I'm curious if there's a way to manually set an object's centre of mass. I currently have an axe, but I'd like the COM to be at the very base of the handle if that's at all possible, ie: https://files.facepunch.com/forum/upload/133314/d367ad16-ee3d-4087-a036-88a4b571926e/image.png Moving it from where the green line starts to the red + Does anyone know if this is possible / how I could go about doing it?
I dunno how precise source physics is. I'm guessing here. First of all the real CoM is the somewhere on the upper end where the main portion of weight aka the blade is. Now if you just wanna pivot the axe you just move the geometry, so it's off center. Means you gotta move/translate (edit) it the way, that the origin in your modelling tool is at the handle. The rest of the physci trick is obvisously changing the compile paramter to something that makes it work the way you want. Which i can't even imagine. You wanna throw it? This might be harder to achieve.
I don't think it's possible, you can change the origin point in the model itself but it won't change much, the problem with source (which isn't really a problem since this is a really unique request) is that the weight is evenly distributed on the whole model, the weight is based on the collision mesh. Now hear me out, this is only a theory but if the weight it based on the collision mesh, there is a very small chance that superimposing various collision boxes onto the handle in the physics model will make the handle heavier, it might not work since I just said earlier that the weight is distributed evenly, but I don't really know how it works so it's just a gamble.
Interesting, I'll give that a try and I'll get back to you. I was wondering if something like: $masscenter <vector|offset> In the QC file would do anything, or if there is anything similar. I'll do some more experimenting tomorrow I think. Thanks for the input though!
Sorry, you need to Log In to post a reply to this thread.