Can't make a rigidbody's kinematic's false - unity is such a joke

Like, for real, Unity can sometimes just be a counter-intuitive joke sometimes. I set an OnTriggerEnter scenario and just want the object I’m attaching the script to’s rigidbody’s kinematics to become false

I’ve tried many different codes and none work. I get so many messages about non-static members etc which honestly are just a mess and is way too much of an issue on unity

anyway, if someone could help me, it’d be very much appreciated. If you know what I’m talking about, you’ll know I’ve tried all of the codes you’d think you’d use in this situation

How about you show us the the exception you’re getting. And the code that is offending.

Sounds like you’re attempting to access an instance level member from a static function somewhere.

Can you show us your code?

Because stuff about non-static members usually means you’re using the wrong references, you’re referencing the static class Rigidbody, not an instance of it

It’s your basic programming skills that are the joke.

Seriously. Slow down, go to the learn section. Do some googling. Find out what an instance is. Find out what a static member is.

The probable answer

Most likely you are trying

Rigibody.isKinematic = false;

When you want

GetComponent<Rigidbody>().isKinematic = false;[/SPOILER]
1 Like

I’ve locked this. Feel free to make another post for your question, showing a normal humility and respect. Asking for help requires that.

If it’s a code problem, post the code too.