#Can someone help me with C#

1 messages · Page 1 of 1 (latest)

ashen siren
#

#📄・posting-guidelines @upbeat fjord whats the problem? whats the code?

#

there is a video but how am I suppose to know what is supposed to happens?

#

I can already tell you have an error tho missing object untitledb

#

@upbeat fjord and in the video you dont press anything?

#

in the video you sent, the square move right? are you pressing A or D?

#

what component does he have?

#

thats unity right? each object has component that you add /removr

#

like a script is a component, a rigid body, a mesh, etc

#

yes

#

Rigidbody2d or rigidbody?

#

okok is there any script?

#

script file on the cube

#

try disabling them and see if the cube still fly

#

unchecked the box

#

desactive?

#

inactive mode

#

the square with a checkmark ☑️ click on it to remove the checkmark

#

this will make the script inactive

#

check this

#

☑️

#

next to the script component

#

this but for the scripts

#

are they not part of the cube object?

#

then click on the cube , not on the script file

#

it will be listed in his components

#

yes but it says your script has error

#

first change the file name to Transport

#

what other errors do you have?

#

you dont have a body in your if, what is it there for?

#

remove it then lol

#

nah the if

#

okok tell me of there are more errors

#

is the gravity active on the rigidbody? try disactivating it to see if its a physics problem, also check the direction that the cube move by looking at his position in real time

#

change to 0

#

what do you mean?

#

oh

#

I am not 100% sure

#

maybe this one?

#

np

#

is the cube still flying?

#

its hard to tell the exact cause, maybe try disabling the polygon collider?