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 Azaldur · Sep 26, 2011 at 06:55 PM · platformmoving

Player on moving plattform

Hey, I'm currently making a multiplayer game in which one player(fps character controller) navigates a flying ship while the others can run on board of the ship and - for example - shoot with a canoon. The ship has a non kinematic rigidbody attached, so it can collide with other objects. The player who moves the ship gets automatically moved to the position of an emtpy game object on the ship. But the other players who walk on the ship slides down if the ship starts to move or block the ship if it wants to move upwards for example, so it results in strange behaviour of the ship. Anyone got an idea how to solve this problem? Thanks

Comment
Add comment · Show 15
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 asafsitner · Sep 26, 2011 at 08:53 PM 0
Share

Try make the players children of the airship? Also, take a look at different collision detection methods on the rigidbodies:

http://unity3d.com/support/documentation/Components/class-Rigidbody.html

Sounds like Continuous or even Continuous Dynamic might help.

avatar image Azaldur · Sep 26, 2011 at 09:59 PM 0
Share

Thanks for your answer :) I heard that parenting the players can result in some strange behaviour. I tried this solution but it didn't work. I also tried continuous Dynamic but nothing changed. Or do my player characters also need a rigidbody attached(I'll try it when I'm at home)? Isn't continuous/continuous dynamic bad for the perfomence when many players are on the ship?

avatar image asafsitner · Sep 26, 2011 at 10:14 PM 0
Share

How many players do you plan to have?

And for some reason, I presumed you already had rigidbodies on the players. It might be helpful if they have it as well.

avatar image Azaldur · Sep 27, 2011 at 12:07 AM 0
Share

$$anonymous$$aybe 10 on one ship, but there will be more than one ship(I use the photon networking engine). Does it work if i set the rigidbodys of the players to kinematic and this use the fps character controller to move them? I don't want to apply physics to them. I'll try it tomorrow because I'm currently not at home.

avatar image SirGive · Sep 27, 2011 at 01:30 AM 0
Share

it does sound like you need to parent your ship to the players. Try making a game object at the lowest level of the hierarchy, then send your players to children of that object.

Show more comments

0 Replies

· Add your reply
  • Sort: 

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Moving platform with button 1 Answer

How can I make a player teleport? 1 Answer

Moving Platform Collisions with Custom Movement Script 0 Answers

Reset Animation on Death of Player 4 Answers

Why is my character not sticking to platform? (Script included) 1 Answer


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