mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
head rot fix
This commit is contained in:
parent
7a82ddaf13
commit
f8d3f3c63b
4 changed files with 39 additions and 26 deletions
|
@ -411,6 +411,12 @@ namespace Rimworld_Animations {
|
|||
|
||||
}
|
||||
|
||||
public Vector3 getPawnHeadOffset()
|
||||
{
|
||||
return Quaternion.AngleAxis(bodyAngle, Vector3.up) * (pawn.Drawer.renderer.BaseHeadOffsetAt(headFacing) + headBob);
|
||||
|
||||
}
|
||||
|
||||
public AnimationDef CurrentAnimation {
|
||||
get {
|
||||
return anim;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue