Thank you for the ultrafast reply! How would you change the following code? I do need a float in the end. Sorry, I’m oviously a noob.
Your help is appreciated a lot!
using UnityEngine;
public class AkRtpcAndAudio : MonoBehaviour
{
private float Force;
private void OnCollisionEnter(Collision collision)
{
Force = collision.relativeVelocity.magnitude;
Debug.Log(Force);
}
}
mhh i think OnCollisionEnter happens after collision so you dont even have the right values anymore. could be wrong, its just out to the top of my head and i cant take a look at it right now so maybe someone else can help continue here?