#camera shite coz i'm dumb
1 messages · Page 1 of 1 (latest)
so u need to make another emtpy game object called player holder inside man mesh
and putt all the player's body parts in it
the u need to pass that holder's transform to the camera script
these body parts?
ya basically everything other than the camera
thats inside man mesh
so the heirarchy goes man mesh ->player holder-> all the player parts
is that create empty or create empty parent?
same empty object
then in script bring back the line
public Transform Player;
``` at the beginning
camera script
oh its a prefap so u need to edit the main prefab itself
which would be man_mesh right
yea it's
assets > adventure_character > Mesh > Man_Mesh
yes so u gotta edit the Man_Mesh main prefab so that in it the is another child and all the things other than the camera are inside that child
i got the empty thing, but it isn't letting me move anything into it
send a screenshot
after we've got this sorted I gotta figure out where to download animations and how to apply them to the character 💀
what u gotta figure out is how to learn this the proper way
🤣 yes i agree
is this an assignment or something?
for school?
like are u doing this cuz its fun or are u doing this cuz u have to
cuz if its the former i highly suggest u leave it for now and learn how the basics work first
nah I'm 19 finished school, I have experience in making fivem servers and a little bit of lua experience but I didn't like the restrictions of my creativity and so I thought I'd find a game engine I like using (unity) and make my own game
I learn by doing not by reading, I can't read or even watch a tutorial on how to do something, I need people to walk me thru the basics like this and once I've got that then I just sorta pick everything else up myself
well unless u can create like a child and put everything into it idk if there is any other way
also why is it a prefab to begin with ? u only have 1 player
idk it's just how it is when I imported the character
prefabs are good for when u need multiple instances of the same object
like NPCs?
yes
like the same object multiple times
even buldings
light posts
roads etc
yes
rn i dont think i can help u rotate the player unless ur able to make a child of it and put everything in there
cuz usually the camera is outside the main player object not a child of it
is it not as simple as add another line or 2 to the camera script?
well it would be except that u have everything as a prefab so no
is there a simple way to just not have it as a prefab
if u just rotate the entire man mesh rn the problem is that ur camera is also in the man mesh so ur camera would also be rotated
ya its to build it but since u imported assets its came as a prefab
one advantage is that animation is gonna be easier on this
but stuff like this becomes a pain
what if I just take the camera out of the man mesh so they are seperate entities?
yay? at least that's something
well if ur editor doesnt stop u from doing that cuz its just an instance of the prefab , the problem is ur camra wont follow ur player anymore cuz ur relying on the parent child connection to drag the camera along with the player
u would need further script to make the camera accurately follow
then as i mention u would need the vector lerp
3d isnt easy man
here is my suggestion since u dont wanna do a tutorial, try small try to make a regular white capsule move and jump and rotate around like ur trying with a complex player mesh
then replace the capsule with the acutaly player mesh
ok