mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix crash
This commit is contained in:
parent
a01739af20
commit
a2253b7a33
@ -85,7 +85,7 @@ impl<'a> System<'a> for Sys {
|
||||
let strength = pull_factor * 50000.0;
|
||||
let pull_dir = (leader_pos.0 - follower_pos.0)
|
||||
.try_normalized()
|
||||
.unwrap_or_default();
|
||||
.unwrap_or(Vec3::unit_y());
|
||||
let impulse = pull_dir * strength * dt.0;
|
||||
|
||||
// Can't fail
|
||||
|
Loading…
Reference in New Issue
Block a user