fix collision for collectibles
This commit is contained in:
		
							parent
							
								
									ffaa5e6129
								
							
						
					
					
						commit
						8f0fb746c0
					
				| @ -53,7 +53,7 @@ func (system *CollectibleSystem) Update() error { | ||||
| 			playerposition := (*Position)(system.World.Get(player, posID)) | ||||
| 			playervelocity := (*Velocity)(system.World.Get(player, veloID)) | ||||
| 
 | ||||
| 			ok, _ := playerposition.Intersects(colposition, playervelocity) | ||||
| 			ok, _ := colposition.Intersects(playerposition, playervelocity) | ||||
| 			if ok { | ||||
| 				slog.Debug("bumped into collectible", "collectible", collectible) | ||||
| 				particlepositions = append(particlepositions, colposition) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user