• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This post has been wikified, any user with enough reputation can edit it.
avatar image
0
Question by jewetnit · Jan 04, 2013 at 04:50 AM · movementphysicsplayerfps

Quake like movement

Hey all!

I'd like to ask if anyone could help me get started creating a movement/physics script for my game like quake 3's. Quake 3 is opensource now so I went through the code but I don't understand how it works (i dont code in C).

I think this is the file that has to be looked into, im not sure what in it's dependancies: bg_pmove.c from quake 3

I also found this (and this) mathematical description of the behavior.

A video of the movement in question. I hope someone can help me get started with this! Thanks

Comment
Add comment · Show 7
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlucardJay · Jan 04, 2013 at 06:59 AM 1
Share

While all the theory is fascinating, is this very different from Unity's standard character controller? Have you made a simple project using the First Person Character Controller? Here is a quick tutorial on terrain and the controller : http://cgcookie.com/unity/2011/12/05/introduction-to-character-controllers/

Then you can add this crouch and run script by Aldo (Edited 2 version) : http://answers.unity3d.com/questions/164638/how-to-make-the-fps-character-controller-run-and-c.html

avatar image jewetnit · Jan 04, 2013 at 03:17 PM 0
Share

@alucardj yes and i've got multiplayer working too (sortof, but i'll figur that out) as well as some weapons, the only problem I'm facing is the actual movement that doesn't satisfy me, atm I have Painkiller-like movement (massive aircontrol, turn 180 degrees without losing momentum)

avatar image Blasfemmy · Jan 04, 2013 at 08:46 PM 0
Share

Isn't the original quake's movement the same as any other fps's except you move really quickly and can jump higher? The only other thing that I can think of is that the gun is in the center of the screen ins$$anonymous$$d of on the right side.

avatar image jewetnit · Jan 05, 2013 at 02:43 PM 0
Share

@Blasfemmy it's quite different I suppose, here's a vid to showcase that http://www.youtube.com/watch?v=S-H2b$$anonymous$$c$$anonymous$$U$$anonymous$$s skip to 3:15

avatar image AlucardJay · Jan 06, 2013 at 06:58 AM 0
Share

There are some rigidbody character controller scripts on the UnifyCommunity 'site. $$anonymous$$aybe something there will be adaptable to your physics needs. Though personally after watching that video, all the augmented movement being added by the extra player inputs seems to be cheating (if I exert more forces while in the air or twisting the torso, how can that propel me more forward than a dedicated forward movement with no other force exerted?) :

http://wiki.unity3d.com/index.php/RigidbodyFPSWalker

http://wiki.unity3d.com/index.php/Scripts/Controllers

http://wiki.unity3d.com/index.php/Scripts

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by RFDaemoniac · Mar 03, 2014 at 06:56 PM

This isn't exactly like quake tournament specs but it's pretty good.

http://torahhorse.com/first-person-drifter-controller-for-unity3d

To all the people saying: "why don't you just make this and then ask for help?" The set of quake movement controls is a pretty well standardized affair (google CPMA for reference).

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Moving your player to another location onTrigger 0 Answers

Player object falling through game environment, collision not detected with ground 0 Answers

Movement script breaks colliders 1 Answer

How to limit the forces applied to an object to just forward, left, and right? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges