mirror of
				https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
				synced 2024-08-15 00:43:45 +00:00 
			
		
		
		
	head addon fix
This commit is contained in:
		
							parent
							
								
									9ad5fd5ea2
								
							
						
					
					
						commit
						e8a3c201ac
					
				
					 4 changed files with 2 additions and 3 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -171,7 +171,7 @@ namespace Rimworld_Animations {
 | 
				
			||||||
                bodyFacing = anim.headFacing;
 | 
					                bodyFacing = anim.headFacing;
 | 
				
			||||||
                angle = anim.headAngle;
 | 
					                angle = anim.headAngle;
 | 
				
			||||||
                quat = Quaternion.AngleAxis(anim.headAngle, Vector3.up);
 | 
					                quat = Quaternion.AngleAxis(anim.headAngle, Vector3.up);
 | 
				
			||||||
                //pos = anim.getPawnHeadOffset();
 | 
					                pos = anim.getPawnHeadOffset();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -413,7 +413,7 @@ namespace Rimworld_Animations {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        public Vector3 getPawnHeadOffset()
 | 
					        public Vector3 getPawnHeadOffset()
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            return Quaternion.AngleAxis(bodyAngle, Vector3.up) * headBob;
 | 
					            return Quaternion.AngleAxis(bodyAngle, Vector3.up) * (pawn.Drawer.renderer.BaseHeadOffsetAt(headFacing) + headBob);
 | 
				
			||||||
            
 | 
					            
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -71,7 +71,6 @@ namespace Rimworld_Animations {
 | 
				
			||||||
				{
 | 
									{
 | 
				
			||||||
					
 | 
										
 | 
				
			||||||
					Quaternion addonRotation = Quaternion.AngleAxis(pawnAnimator.headAngle < 0 ? 360 - (360 % pawnAnimator.headAngle) : pawnAnimator.headAngle, Vector3.up);
 | 
										Quaternion addonRotation = Quaternion.AngleAxis(pawnAnimator.headAngle < 0 ? 360 - (360 % pawnAnimator.headAngle) : pawnAnimator.headAngle, Vector3.up);
 | 
				
			||||||
					var pseudoRootLoc = addonRotation * pawn.Drawer.renderer.BaseHeadOffsetAt(pawnAnimator.headFacing);
 | 
					 | 
				
			||||||
					/* 
 | 
										/* 
 | 
				
			||||||
					 * 
 | 
										 * 
 | 
				
			||||||
					 * genital rotation is borked
 | 
										 * genital rotation is borked
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue