#Donk Inverted Camera issue.

1 messages · Page 1 of 1 (latest)

indigo river
#

Ok, More likely you need to invert your input value.

#

When you say that you are "Floating" and keep going, are you implying that no gravity is acting on your game object?

indigo river
#

Please refrain from using Transform.translate.

modern tide
#

because when i go off a slope it just keeps going and doesn't follow the path down

indigo river
#

Either use charactercontroller or use rigidbody to get that physics requirement you wanted.

modern tide
#

doesn't work

#

it just falls apart

indigo river
#

What's happening in your scene? Any picture? Any code that you can share?

modern tide
#

it just rolls on the floor and when i move again that's when it floats back into the air and goes

indigo river
#

What did you add to your gameobject? Rigidbody I assume?

modern tide
#

yup

indigo river
#

Lock rotation constraint.

modern tide
#

how?

indigo river
#

Select your player, look at the rigidbody component, and there should be a constraint in the inspector. Looks like this

modern tide
#

ok i just fall through the ground

indigo river
#

Does your character have a collider?

modern tide
#

i have this cube on it to signify which direction im going i also added it to that aswell

#

No 🤦‍♂️

indigo river
#

Is it parented to the game object?

modern tide
#

yes

#

they move as one

modern tide
#

a capsule collider?

indigo river
#

sure

#

any collider would work, but whatever makes the most sense for you.

near stag
#

hey

#

so i can't understand tutorials

modern tide
#

😐

indigo river
#

Why is that?

near stag
#

i prefer a human being to help me

modern tide
indigo river
#

I simply cannot help everyone here guide through using unity. I can only help so much that I need my own time to work on my project.

indigo river
modern tide
indigo river
indigo river
#

Normally, you should only have at least one terrain in your scene. Why do you need so many terrains?

modern tide
#

they already have it

indigo river
#

Who's they? Are you not working on this game project yourself?

modern tide
#

when i go to move my character it just implodes

modern tide
#

i said they because there's multiple terrain

modern tide
#

I'm making a big map

indigo river
#

Well how big is it?

#

Terrain should be able to cover 10km by 10km

modern tide
indigo river
#

If you needed to make a game that big, I would suggest stop first, and work on your mechanics before you dive into this massive project you are going to have to work with.

modern tide
#

That's why im doing the player first

#

before adding other stuff

#

anyway my character just implodes

indigo river
#

It's hard to imagine "EXPLOSION" and "Implosion" with your words.

modern tide
#

I'll try and rec

indigo river
#

I'm having problem playing your video. It's not playing anything at all?

modern tide
#

what

indigo river
#

Trim the video to only show me how it implode instead, and upload through here. It should be less than 5 mb in file size.

modern tide
indigo river
#

Looks like you have your player movement script on all of your game object. you should only have one player mover script on your root gameobject instead.

#

The other gameobject are meant for visual only.

#

In this case, can you make sure that Third person movement script is only on "Third Person Player" game object, and not on GFX nor cube.

modern tide
#

so which ones does it need to and not need to be on? Third person player, GFX and Cube?

indigo river
modern tide
#

what's game object thou

indigo river
#

All of the item you see in the hierarchy are gameobjects.

modern tide
#

ahh. so the only one it should be on is Third Person Player got it

#

mk well that had no effect .-.

indigo river
#

IT also looks like it implodes because other gameobject (GFX and cube) have collider and rigidbody on them They do not need those two components. Only the root gameobject needs it... Do you know the reason for this?

modern tide
#

nope

#

ok so i've removed them and now it just rolls... but when i press w it get's moved into the air ready to move....

indigo river
#

So the reason you'd have a empty gameobject that house all of your physics, input, and other behaviour instead of your Cube gameobject, is because you can continue to use that same game object, but swap out other visual effects for your Cube. This makes it easy to adjust and expand your game out.

#

Did you forget to add the constraints?

modern tide
indigo river
modern tide
#

ok now it just slides along the floor when i let go and when i move it it floats in the air

indigo river
modern tide
#

what does that mean

#

Transform.translate.

#

in the movement script?

indigo river
#

wait

#

Yeah

#

stop using transform.translate.

modern tide
#

alr so how do i properly remove it from the script

indigo river
#

You... edit it?

#

I would suggest reviewing a tutorial on this instead. It'd be much faster.

#

Other than that, once you get that replaced with the proper invoke call to either rigidbody or character controller, you should be all set.

#

👍

modern tide
#

Transform.translate. isn't in the script tho

#

also i have a character controler

#

i have that and a rigid body