Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 zerox911 · Mar 29, 2012 at 02:55 AM · playerplatformonstick

how to make a player with magnet like effects??

i have a platform and a sphere as a player...

  1. wanted to create a cylindrical platform whereby the player sort of "sticks" on to the platform and moves freely...

||when the player is on the other side of the platform..||

2.the player is not affected by gravity but still snapped on to the platform..

what is the best solution for this problem??

any ideas or answers is appreciated...

thank you..

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by reptilebeats · Mar 29, 2012 at 04:21 AM

Manipulate the gravity in physics through scripting, so say i go though a trigger then gravity changes from y-9.3 to x-9.3 and vice versa. I dont know what the line is for accesing gravity but should be easy to find.

Or disable gravity and add a constant force to the character which changes pretty much the same thing. just only effecting that one object its on.

If you where going to eventually use a human character u would also have to apply rotation

So x = -9.3 and transform.rotate 90

Comment
Add comment · Show 2 · 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 reptilebeats · Mar 29, 2012 at 04:24 AM 0
Share

Oh u could get fancy and make the force relative to the players feet pointing down so where ever he walks the gravity is always down

avatar image zerox911 · Mar 29, 2012 at 04:33 AM 0
Share

this might help...

i'll go try it out...

thanks ...

^_^

avatar image
0

Answer by jpivarski · Aug 09, 2012 at 08:30 PM

This is a different suggestion, so I'm putting it in a different Answer. There's a question here about walking on walls with magnetic boots. There are many detailed solutions that force the character to be upright and aligned with the surface by hand, rather than designing a physical scenario that would give rise to it. The latter might be more stable, just as a real pair of magnetic boots wouldn't be 100% fault tolerant. It depends on what you want.

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.

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

my ball sometimes jumps higher or sometimes not 2 Answers

Particle system turns on when player gets close. 1 Answer

AI follows player between platforms in 2D? 1 Answer

Player parent to platform problem 0 Answers

2d platformer player shoots 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