Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
avatar image
0
Question by Max 4 · May 22, 2011 at 08:59 AM · fpscontrollergravityunderwater

Beginning an underwater game

I have been searching for a while, but couldn't find any documentation of it. I want to make an underwater first person shooter. I was thinking about the character controller, and was wondering if you could edit the FPS controller script to allow for the character to move where ever it's facing, so if it's facing up, it'll move up. Also, maybe something like space makes the character go up, instead of jump.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Graham-Dunnett · May 22, 2011 at 09:20 PM

Yes, you can edit the Character Controller script and make it do whatever you want.

Comment
Add comment · Show 6 · 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
avatar image Max 4 · May 23, 2011 at 07:24 AM 0
Share

I was asking more for how to do it.

avatar image CHPedersen · May 23, 2011 at 07:38 AM 1
Share

"How to do it" is a very general question. :) Changing the Character Controller script to make it behave as though everything takes place under water involves a lot of steps. I think your best bet would be to have a sit down and really study what exactly the Character Controller script does to make the character behave well above water. After that, I think a lot of the answers you seek will come naturally to you, such as what you'll need to do with the vectors to change the jump to a swim.

avatar image Max 4 · May 23, 2011 at 11:10 AM 0
Share

I think you're right. I'm no expert, so this will be a learning experience, I'll work out what I can, but probable come back here when I hit a total block.

avatar image CHPedersen · May 23, 2011 at 12:20 PM 1
Share

That's the spirit. :-D Feel free to come and shoot whatever's troubling you at the board. The more specific the problem, the higher the chance some expert will know what to do.

avatar image Joshua · May 23, 2011 at 01:01 PM 0
Share

I might be wrong, but isn't there something like this already implemented in either the FPS-demo or the Island-demo? I remember swim$$anonymous$$g.. somewhere xD

Show more comments

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.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

my first person controller dosent work properly 2 Answers

Mobile Controller and Game Controller 0 Answers

Player moving without input 2 Answers

A gravity probleme with an Airplane Controller 1 Answer

Personal Gravity and Real Time Gravity Manipulation 2 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