mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
This commit is contained in:
		
							parent
							
								
									64a63e0861
								
							
						
					
					
						commit
						b5e1e05ef2
					
				
					 1439 changed files with 1 additions and 34187 deletions
				
			
		|  | @ -62,7 +62,6 @@ GodotRayWorldAlgorithm::~GodotRayWorldAlgorithm() { | |||
| } | ||||
| 
 | ||||
| void GodotRayWorldAlgorithm::processCollision(const btCollisionObjectWrapper *body0Wrap, const btCollisionObjectWrapper *body1Wrap, const btDispatcherInfo &dispatchInfo, btManifoldResult *resultOut) { | ||||
| 
 | ||||
| 	if (!m_manifoldPtr) { | ||||
| 		if (m_isSwapped) { | ||||
| 			m_manifoldPtr = m_dispatcher->getNewManifold(body1Wrap->getCollisionObject(), body0Wrap->getCollisionObject()); | ||||
|  | @ -80,13 +79,11 @@ void GodotRayWorldAlgorithm::processCollision(const btCollisionObjectWrapper *bo | |||
| 	const btCollisionObjectWrapper *other_co_wrapper; | ||||
| 
 | ||||
| 	if (m_isSwapped) { | ||||
| 
 | ||||
| 		ray_shape = static_cast<const btRayShape *>(body1Wrap->getCollisionShape()); | ||||
| 		ray_transform = body1Wrap->getWorldTransform(); | ||||
| 
 | ||||
| 		other_co_wrapper = body0Wrap; | ||||
| 	} else { | ||||
| 
 | ||||
| 		ray_shape = static_cast<const btRayShape *>(body0Wrap->getCollisionShape()); | ||||
| 		ray_transform = body0Wrap->getWorldTransform(); | ||||
| 
 | ||||
|  | @ -100,7 +97,6 @@ void GodotRayWorldAlgorithm::processCollision(const btCollisionObjectWrapper *bo | |||
| 	m_world->rayTestSingleInternal(ray_transform, to, other_co_wrapper, btResult); | ||||
| 
 | ||||
| 	if (btResult.hasHit()) { | ||||
| 
 | ||||
| 		btScalar depth(ray_shape->getScaledLength() * (btResult.m_closestHitFraction - 1)); | ||||
| 
 | ||||
| 		if (depth > -RAY_PENETRATION_DEPTH_EPSILON) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde