mirror of
				https://github.com/aap/librw.git
				synced 2025-11-04 00:41:59 +00:00 
			
		
		
		
	fixed atomic world bounding sphere
This commit is contained in:
		
							parent
							
								
									a6a7b0e89c
								
							
						
					
					
						commit
						63521d903f
					
				@ -615,8 +615,8 @@ Atomic::getWorldBoundingSphere(void)
 | 
				
			|||||||
		return s;
 | 
							return s;
 | 
				
			||||||
	Matrix *ltm = this->getFrame()->getLTM();
 | 
						Matrix *ltm = this->getFrame()->getLTM();
 | 
				
			||||||
	// TODO: support scaling
 | 
						// TODO: support scaling
 | 
				
			||||||
	s->center = ltm->transPoint(s->center);
 | 
					 | 
				
			||||||
	// TODO: if we ever support morphing, fix this:
 | 
						// TODO: if we ever support morphing, fix this:
 | 
				
			||||||
 | 
						s->center = ltm->transPoint(this->geometry->morphTargets[0].boundingSphere.center);
 | 
				
			||||||
	s->radius = this->geometry->morphTargets[0].boundingSphere.radius;
 | 
						s->radius = this->geometry->morphTargets[0].boundingSphere.radius;
 | 
				
			||||||
	this->object.privateFlags &= ~WORLDBOUNDDIRTY;
 | 
						this->object.privateFlags &= ~WORLDBOUNDDIRTY;
 | 
				
			||||||
	return s;
 | 
						return s;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user