Character Trouble

Hey, guys. I’d like my little low-poly character to be seen by the camera without the camera rotating along with it. Now, I know you use empties to achieve this, but I tried to no avail. I have mostly everything set up in this blend file, with the camera aligned as I’d like to see the game during gametime. If anyone could tell me how to get the camera to follow my character like it would in a third-person adventure game, I would most appreciate it. :]

http://www.savefile.com/files/377567

Vertex parent. Select the camera, shift + select your mesh, go into edit mode, ctrl + click to add a new vert, ctrl p and click ok.

Thanks for the reply, but when I do that and control click to add the vertex, it duplicates the mesh. Is there a way around this?

1 Like

Python I think.

There a many many ways of doing it. I would propose having certain properties that keep track of the distance between the camera and the object its following on all the axis. Then, a final property that avereges then all out. This way, if you move up or left or whereever it will respond with more sensitivity to diaganoal movement and with less with straight movement.

Then put a final proerty that seeks to return the distances down to as low a number as you want - this number will determine how tightly the camera tracks. Next give the updater a delay ie have it update this tracking tightness number at low intervals. This will give the camera a smoother transition when its moving. If your really good with math you can add some fancy equations to give the update speed some curvature. Or you can just give the updater a lot of conditions that would cause it to have a curve as well.

Also, you have to keep the camerea itself constrained to whatever axis and rotation that you want it to be and there are several techniques for doing that.

I guess I didn’t explain that too well. lol sorry for wasting your time. But I spent time learning JavaScript and I am new to Python so I can’t tell you how to set that up. I am also unfamilar with the API so I couldn’t tell you how to set that portion up either.

Maybe Social will chastise me now.

WAIT!!!

why is vertex parenting not working for him?

anyways… you can use the Edit:track to to make it point anywhere you want it to.

I cant get vertex parenting to work either. (2.42a)

Can anyone submit a working .blend with this vertex parent method?

With Pleasure :smiley:
Vertex Parent Example

killned3, to get the vertex parenting to work, you must deselect all vertices after you enter edit mode, then [Ctrl+Click] to add a new vertex. I like to place my new vertex at the center of the object, personally.

Thanks Siegel!

also, I bleieve you could just use a camera actuator (it works fine for me, at least)