Rename usages of collidable to physics (#2230)
* Rename usages of collidable to physics * high tier PANIQUE * aaaaaaaaAAAAAa * cursed commit dont research * Fix urist and items being anchored * Fix the rest
This commit is contained in:
@@ -72,7 +72,7 @@ namespace Content.Server.GameObjects.Components.Projectiles
|
||||
}
|
||||
|
||||
// This is so entities that shouldn't get a collision are ignored.
|
||||
if (entity.TryGetComponent(out ICollidableComponent collidable) && collidable.Hard == false)
|
||||
if (entity.TryGetComponent(out IPhysicsComponent otherPhysics) && otherPhysics.Hard == false)
|
||||
{
|
||||
_deleteOnCollide = false;
|
||||
return;
|
||||
@@ -103,9 +103,9 @@ namespace Content.Server.GameObjects.Components.Projectiles
|
||||
}
|
||||
|
||||
if (!entity.Deleted && entity.TryGetComponent(out CameraRecoilComponent recoilComponent)
|
||||
&& Owner.TryGetComponent(out ICollidableComponent collidableComponent))
|
||||
&& Owner.TryGetComponent(out IPhysicsComponent ownPhysics))
|
||||
{
|
||||
var direction = collidableComponent.LinearVelocity.Normalized;
|
||||
var direction = ownPhysics.LinearVelocity.Normalized;
|
||||
recoilComponent.Kick(direction);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user