Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Help Here Please.

Author
Message
Yuhe
7
Years of Service
User Offline
Joined: 27th Aug 2017
Location:
Posted: 30th Aug 2017 22:22 Edited at: 31st Aug 2017 12:18


Any suggestions?
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 31st Aug 2017 13:50
what exactly is the question?
Yuhe
7
Years of Service
User Offline
Joined: 27th Aug 2017
Location:
Posted: 31st Aug 2017 16:00

Hi, if you have watched the video, you see that when you move the camera there is a stuttering of the capsule when it moves, and when it falls into the void it jumps and it is not fixed.

What I am doing is that I have two pivots, one that is in the center of the capsule and another is a little later, in the second pivot the camera is positioned, the first pivot is positioned in the capsule of character controller.

Here is the code.

https://www.dropbox.com/s/42lg5jgrdha9j9c/MarteCode.rar?dl=0


Third-person camera using the character controller.
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 1st Sep 2017 08:15 Edited at: 1st Sep 2017 08:16
1 - beginloop
2 - Move your character locally, and rotate it locally using controls.
3 - place and rotate your camera exactly as your character is, using GetObjectX/Y/Z(character), getobjectangleX/Y/Z(character)
4 - Move back locally your camera using MoveCameraLocalZ(1,-backdistance)
5 - optionally move up your camera using MoveCameraLocalY(1,cameraWantedHeight)
6 - optionally SetCameraLookAt(1,GetObjectX(character),GetObjectY(character),GetObjectZ(character),0) to focus your character
7 - sync()
8 - endloop

should do the trick
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit

Login to post a reply

Server time is: 2024-11-24 09:26:12
Your offset time is: 2024-11-24 09:26:12