Rebalance movement speeds
This commit is contained in:
@@ -20,7 +20,7 @@ public class Ratbot : MonoBehaviour
|
|||||||
// Constantly move towards player
|
// Constantly move towards player
|
||||||
Rigidbody2D controller = GetComponent<Rigidbody2D>();
|
Rigidbody2D controller = GetComponent<Rigidbody2D>();
|
||||||
Vector2 direction = (player.transform.position - transform.position).normalized;
|
Vector2 direction = (player.transform.position - transform.position).normalized;
|
||||||
controller.linearVelocity = direction*moveSpeed*Time.deltaTime;
|
controller.AddRelativeForce(direction*moveSpeed*Time.deltaTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnCollisionStay2D(Collision2D collision) {
|
void OnCollisionStay2D(Collision2D collision) {
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 4d75aac518cf9dca0b16bb5a2e347204, type: 3}
|
m_Script: {fileID: 11500000, guid: 4d75aac518cf9dca0b16bb5a2e347204, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
moveSpeed: 200
|
moveSpeed: 1500
|
||||||
damageStrength: 10
|
damageStrength: 10
|
||||||
damageTimeoutSeconds: 0.5
|
damageTimeoutSeconds: 0.5
|
||||||
health: 10
|
health: 10
|
||||||
@@ -164,8 +164,8 @@ Rigidbody2D:
|
|||||||
m_Simulated: 1
|
m_Simulated: 1
|
||||||
m_UseFullKinematicContacts: 0
|
m_UseFullKinematicContacts: 0
|
||||||
m_UseAutoMass: 0
|
m_UseAutoMass: 0
|
||||||
m_Mass: 1
|
m_Mass: 0.5
|
||||||
m_LinearDamping: 0
|
m_LinearDamping: 10
|
||||||
m_AngularDamping: 0.05
|
m_AngularDamping: 0.05
|
||||||
m_GravityScale: 1
|
m_GravityScale: 1
|
||||||
m_Material: {fileID: 0}
|
m_Material: {fileID: 0}
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
||||||
propertyPath: moveSpeed
|
propertyPath: moveSpeed
|
||||||
value: 3000
|
value: 5000
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
- target: {fileID: 6118034672792182209, guid: e05928a0d673caf999d31b31b994a112, type: 3}
|
||||||
propertyPath: dashDistance
|
propertyPath: dashDistance
|
||||||
|
|||||||
Reference in New Issue
Block a user