#Player jumping
1 messages · Page 1 of 1 (latest)
I'll start a thread to keep it a bit cleaner.
once you've removed the Vector3.Up, the code should compile.
You can store the return from the GetComponent<Rigidbody>() into a variable, then use that to do things with, like adding force.
Does the GameObject have a Rigidbody attached to it?
yes it does
ill do that first thing rn
wait
is this how you make it?
private float GetComponent.Rigidbody();
nono
make a different variable
and assign the component to it
you can't make variables out of return values
umm
i think i might need to learn some more before jumping into straight up practice
yep
learn.unity.com
thank you for that
👍