#Player jumping

1 messages · Page 1 of 1 (latest)

dusky shale
#

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?

cloud oriole
#

yes it does

#

ill do that first thing rn

#

wait

#

is this how you make it?

#

private float GetComponent.Rigidbody();

vital jungle
#

nono

#

make a different variable

#

and assign the component to it

#

you can't make variables out of return values

cloud oriole
#

umm

vital jungle
#

I feel like you should learn basic coding knowledge

#

before coming here

cloud oriole
#

i think i might need to learn some more before jumping into straight up practice

cloud oriole
vital jungle
#

learn.unity.com

cloud oriole
#

thank you for that

vital jungle
#

👍

cloud oriole
#

illlisten to that

#

and ill be back to report

#

anyway

#

have a good day

#

and thanks