Pixelch3f

Results 4 comments of Pixelch3f

wow, quick reply wasn't expecting that ha! Thanks for that initially. Here's the knockback code: Player script: `public float knockbackSpeed = 4f; public float playerMass = 3f; public Vector3 knockbackImpact...

I think I did it, pretty simple actually! ` public void Knockback(Vector3 direction, float force) { direction.Normalize(); if (direction.y < 0) direction.y = -direction.y; // reflect down force on the...

Quick update, I've simplified the code and I'm happy with it now: ` public void Knockback(Vector3 direction, float force) { playerVelocity += force * direction / playerMass; playerController.Move(playerVelocity * Time.deltaTime);...

No problem, never done that before but I believe I have just done it! I also added a new file for the rocket explosion (I think) which is required for...