playMaker

Author Topic: FPS Camera Problem  (Read 1792 times)

Rpixel

  • Playmaker Newbie
  • *
  • Posts: 7
FPS Camera Problem
« on: November 05, 2013, 09:46:42 PM »
Hello,
I'm beginner in game making and playmaker.
Currently I want to make a simple fps game.
Firstly I want to make Player (+camera) move in the arena.
I got a tutorial in

http://www.hutonggames.com/tutorials_camera_motion_and_control.php
(07 - First and Third Person Cameras )

I follow all steps in that tutorial, but I can't get same result.
This is my problem.

https://www.dropbox.com/s/1gkd4tub2i0di7o/Untitled%2028.flv

I use Unity4.2.2 and PlayMaker 1.7.3.
The tutorial released since April 2012.
I have no idea is it about unity and playmaker version or other problem.
Please any help to solve this problem really appreciated.
Thank you.

redikann

  • Full Member
  • ***
  • Posts: 174
Re: FPS Camera Problem
« Reply #1 on: November 05, 2013, 10:16:59 PM »
By watching the video if you are using a rigid body you probably need to constrain rotation on all axis.

Rpixel

  • Playmaker Newbie
  • *
  • Posts: 7
Re: FPS Camera Problem
« Reply #2 on: November 06, 2013, 01:51:34 AM »
By watching the video if you are using a rigid body you probably need to constrain rotation on all axis.

I check X and Z option of freeze rotation constrain. It works.
Now player can move and rotate. Thanks.
But the rotation look not normal. It too fast and tend to rotate continuously.
Here's the build test

https://www.dropbox.com/s/6v9het2cl1hjhss/test.rar

(control ; w;forward, s;break, a: turn left, d; turn right)

When player move then colide with the wall, sometimes it rotate weird.
I guess the problem is value of Add Torque action. I change it but won't work.
After I test it, I think I prefer to change rotation controller to use mouse movement rather than use keyboard as explained in tutorial.
Do you know the link where can I get complete Playmaker tutorial that explain FPS Making ?

Thanks