• 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 Nony42 · Sep 30, 2013 at 07:53 PM · level-design

Spline Work-Around. Joints?

Ok, I don't really feel comfortable using someone else's code that I don't understand, due partially to my pride and stubbornness, so I was looking for a work around using joints. I'm trying to make a 2.5D platformer and there really aren't going to be a lot of twists and turns to really justify me buying someone's spline toolset anyway.

This is how I was hoping to do it. Set up a collider over an area where the player or enemy would turn and as soon as either entered the area they would hinge around a designated point so they would rotate around the turn ( was also hoping to use this for a spiral stair case. ). Is there a way to do this for just the rotation, I was wanting the character to be able to jump while turning around these corners and while ascending the spiral staircase?

All feedback is welcome. I'm fairly new so this may very well be a bad idea. I was only going to have a few turns or so per level so something small like this is what I was looking for. Any tutorials I was looking for the spline method turned out to just be advertisements for tool sets so if anyone know one I'd be happy to check it out. Thanks in advanced for all your help

PS. I'm really just looking for some direction at this point, not asking anyone to code this for me.

PPS. Using a rigid body controller

Comment
Add comment · Show 13
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 robertbu · Sep 30, 2013 at 08:06 PM 0
Share

How are you moving your character: Character Controller, Rigidbody, direct manipulation of the Transform?

avatar image Nony42 · Sep 30, 2013 at 08:27 PM 0
Share

Sorry for not specifying, rigidboy controller.

avatar image robertbu · Oct 01, 2013 at 04:51 AM 0
Share

I gave your problem some thought. There are several approaches, but no easy solutions and no clear winners. $$anonymous$$ore details might help.

  • Does the object always approach the pivot at 1) exactly the same angle, 2) approximately the same angle, 3) arbitrary angle.

  • Is the 'release' from the pivot always a multiple of 90 degrees?

  • Is the player walking around arbitrarily or is the user walking a set path. If a set path, is a waypoint solution a good way to go (possibility with some latitude)?

  • Are the corners bi-directional.

  • Is this a 3D game? In particular if the player is walking a spiral staircase, is he also ascending/descending?

  • Why use this kind of mechanism at all? Why not create geometry and just allow the user to navigate through the turns?

avatar image Nony42 · Oct 01, 2013 at 05:12 PM 0
Share

this is what I am basically trying to achieve: http://answers.unity3d.com/questions/29873/Restrict-a-players-movement-to-a-path-for-a-25D-game-that-has-curved-paths.html

avatar image robertbu · Oct 01, 2013 at 05:32 PM 0
Share

I agree with the spirit of the posters at the question you reference. A path of some sort is a good solution. Your idea would get very ugly very fast as a solution to this problem. Note you don't really need spline code (though it might make movement a bit smoother). Just use a series of waypoints. There are lots of posts here on UA with code to move along a series of waypoints, and the code is not very complicated. I think you can use the iTween path editor to create the waypoints even if you don't use iTween to walk the points. This would make building the path much easier:

http://pixelplacement.com/2010/12/03/visual-editor-for-itween-motion-paths/

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

14 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 avatar image avatar image

Related Questions

Convert Input Field to String 0 Answers

A few questions here regarding AI 2 Answers

Idle Randomiser 1 Answer

Leveling system 1 Answer

Conflicts with colliders 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