Compare commits
	
		
			2 Commits
		
	
	
		
			be35ecb310
			...
			cb9eb57a2c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| cb9eb57a2c | |||
| 0bce36f41d | 
| @ -331,11 +331,11 @@ pub trait Lerp { | |||||||
| 
 | 
 | ||||||
| impl Lerp for f64 { | impl Lerp for f64 { | ||||||
|     fn lerp(self, other: &Self, diff: f64) -> Self { |     fn lerp(self, other: &Self, diff: f64) -> Self { | ||||||
|         let delta = diff / 1_000_000.0; |         let delta = diff; | ||||||
|         let lerped = self + ((*other - self) * 0.5 * delta); |         let lerped = self + ((*other - self) * 0.5 * delta); | ||||||
| 
 | 
 | ||||||
|         if *other != self { |         if *other != self { | ||||||
|             println!("c: {} target:{} lerp: {}", self, other, lerped); |             println!("c: {} target:{} lerp: {} diff: {} move: {}", self, other, lerped, diff, (*other - self) * 0.5); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         lerped |         lerped | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user