• Set entity angles relative to a different origin and/or point
    3 replies, posted
TL:DR I'm attempting to set the angles of a prop (in this case a cannon) via lua but when I use entity:SetAngles() it rotates the prop around a point that's a bit away from the prop so I need a way to rotate it relative to a point of my choosing. Alternatively, if someone knows how to do some weird meme magic with the QC file i'm willing to edit that too but that'd be for a different subforum. I'm hoping to try and fix this without changing the model as I've already tried adjusting the position of the model in blender to be at the origin but it doesn't seem to change anything. Also, no the gun isn't rotating at the center of the barrel or anything in that picture, the rotation origin thing is really roughly where I marked in the second pic.
Move the model itself (in a modelling app) so that 0,0,0 is the point you want to rotate around. Also this isn't the modelling sub-forum.
TL:DR I'm attempting to set the angles of a prop (in this case a cannon) via lua Doesn't matter either way. Figured out how to fix it in blender instead of in lua.
You clearly stated that you had access to recompiling the model, that is the best fix.
Sorry, you need to Log In to post a reply to this thread.