#Can't Go forward!
1 messages · Page 1 of 1 (latest)
now FIRST the animation clip in the Animation window found under Window > Animation
You mean I take a pic? OK tehn!
yes...
Yes, a screenshot. That we have all asked this entire time
😄
not a soul said anything about a video
Ill psate a pic but I'm not sure what you want!
but what
scroll down on the names on the left
and screenshot until you reach the bottom
Ok, one by one...
only 2-3 screenshots will be required, not much
Do any of them say transform.position
Also look at your moving animation not idle
Yeah but I want my character to interact with physics! tha's why im using RB
- What the hell does that sentence have to do with what I said
- That's the same fucking screenshot again
OOfnagain!
i hope you aren't trolling lol
no hes just 12 and doesnt have a brain
still idle animation...
you were told to go to the walking one
if you take a second to read, you wouldnt need to use Ughr!
You're still looking at the idle animation
ok now scroll down and screenshot again
Yup!
that's the bottom!
if that doesn't make you upset postponing the subject to 7-9 hours. Gonna sleep a little, sorry guys!
imagine sleeping
Alright! What should I do now? I posted the pic above! Anything to do?
Does the player move if you disable the animator
No, it doesn't move!
Post the code again. It's been a while
That's the full script!
Show a screenshot of the inspector of this component on the player
I used all the three ways of moving the RigidBody in the code and yet it didn't work!
MovePosition, Velocity, AddForce!
The plaer has a collider also the terrain!
Add this line after your add force, in both places.
Debug.Log($"Player's velocity is {rigidbody.velocity}");
Oh, that's a cool code! shows the Player's pos!
Can I tell more issues/bugs I'm facing? might it's from them too!
You know when I press the key W, the animation plays and doesn't stop when I put away my finger!
I've also tried to diable the Animator as you said above and doesn't move 😦
the player also slowly falls!
I didn't ask you to put that there just for showing off a nest trick. What does it say
it defines the player's velocity but shows the position!
No, it shows the players velocity
Unless you changed it
Yes that is velocity. Your position is different. You can see it
I'm thinking it's the rigidbody issue! See the code? it's written private new Rigidbody
and when I remove that word new it gets an error!
Just to be sure, Change the log to this:
Debug.Log($"Player's velocity is {rigidbody.velocity}, position is {transform.position}");
- It's a warning not an error
- It's not relevant here
Do this then send another screenshot with your console visible like you did just now
Remove the Delta time from your add force lines
Then run it again and send another screenshot
the player was moving!
Default force mode is already meant for per frame, you don't need to make it so with Delta time
Ughr! I thought it makes it better!
Wait! it's not working! it's sliding on the terrain!
even moves when in the sky, without pressing any button!
Well yes, you're setting the velocity to the same thing whether you're pressing the button or not. I assumed you had done that as a means of testing
I've made it move by using ForceMode.Impulse but it was going too fast! set Impulse to Force it was same. But when I use it with Vector3 it says it can't take 4 arguments ! because V3 only for XZY.
I've lowered the speed but it didn't help!
Why
Why did you do this
cause it was already not moving! Had no other way so I did this!
It's like you just ignore the things I say to change, change completely different things, then get mad when it doesn't work
Aight, changed it to as it was! No Idea why it doesn't move! Used so many ways across the web and nothing!
Yeah, that's when you press the button W and the animation plays forever!
Because you're setting the velocity to the same thing whether you're pressing the button or not.
You mean even if my finger is not on the button?