Rebalance movement speeds

This commit is contained in:
2024-10-22 19:11:55 -07:00
parent 3bec4ee221
commit 9494eb1e34
3 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ public class Ratbot : MonoBehaviour
// Constantly move towards player
Rigidbody2D controller = GetComponent<Rigidbody2D>();
Vector2 direction = (player.transform.position - transform.position).normalized;
controller.linearVelocity = direction*moveSpeed*Time.deltaTime;
controller.AddRelativeForce(direction*moveSpeed*Time.deltaTime);
}
void OnCollisionStay2D(Collision2D collision) {

View File

@@ -102,7 +102,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4d75aac518cf9dca0b16bb5a2e347204, type: 3}
m_Name:
m_EditorClassIdentifier:
moveSpeed: 200
moveSpeed: 1500
damageStrength: 10
damageTimeoutSeconds: 0.5
health: 10
@@ -164,8 +164,8 @@ Rigidbody2D:
m_Simulated: 1
m_UseFullKinematicContacts: 0
m_UseAutoMass: 0
m_Mass: 1
m_LinearDamping: 0
m_Mass: 0.5
m_LinearDamping: 10
m_AngularDamping: 0.05
m_GravityScale: 1
m_Material: {fileID: 0}

View File

@@ -317,7 +317,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
propertyPath: moveSpeed
value: 3000
value: 5000
objectReference: {fileID: 0}
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
propertyPath: dashDistance