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 G54 · May 12, 2011 at 02:55 AM · rotationmovementaxisworld

Is a Rotating World fesable

Alright so quick question i was wondering if it would be fesable to have my main character go around the sides of a cube. The problems ive had so far are global axis becuase when your on a side up is the z instead of the y etc. Basically what i was wondering is can this be done and if so could you point me in the right direction

Thanks Mike

Comment
Add comment · Show 1
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 loopyllama · May 12, 2011 at 05:53 AM 0
Share

remember if you rotate your world then nothing in that rotated world can be statically batched.

2 Replies

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

Answer by Jean-Fabre · May 12, 2011 at 05:40 AM

Hi,

If you add an empty gameObject acting as the root of all your models you want to rotate, then, it's trivial. That is, in the hierarchy view, you have only one gameObject at the top level, the rest is parented to it. Rotate this, and Everything will follow. If you want more granular control, make as much root level as you need ( one for the world, one for the player, etc etc).

Bye,

Jean

Comment
Add comment · Show 4 · 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 G54 · May 13, 2011 at 11:14 AM 0
Share

I really like that idea, but would it make the player look like is rotating or the world?

avatar image Jean-Fabre · May 13, 2011 at 01:43 PM 0
Share

well, that all depends on how you have your camera set and how you have your character setup, but if the camera and the player is not linked to that world root you are rotating, then yes ( provided your character will support a moving rotating ground which it should).

avatar image G54 · May 13, 2011 at 03:55 PM 0
Share

Alight ill give it a try. Ill let you know if it work

avatar image G54 · May 15, 2011 at 03:54 AM 0
Share

Perfect I actually made a 90 degree rotation animation and used that along with an empty that the player is parented to and it works awesome! Thank you sooo much.

avatar image
1

Answer by lil_billy · May 12, 2011 at 03:07 AM

yes it can be done if: you are prepared to a F***ton of programming you are good with mathematical physics (and are prepared to write physics calculations in code)

after that yes

depending on what you are looking for, one possible way to greatly reduce your work load is to use constant forces that will always push towards the cube (that will hopefully override the effect of world gravity else you will have to turn it off and then do a bunch of things)

next you could use some trickery to have the lookat function to orient your character so that his feet are always pointing towards the ground (this WILL not resolve any physics issues)

i had a friend who did this with spheres easily enough (cubes are bound to be much harder) because the orientation will be sudden

next there is always my favorite perspective and that is what you see and what the player sees can be COMPLETELY different in your case you could make it appear that the player is orbiting the cube but in reality the world is rotating for the player (i promise this will be alot less punishing than having to write your own physics system)

Comment
Add comment · Show 1 · 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 G54 · May 13, 2011 at 01:51 AM 0
Share

Alright thanks I will try some of that. I'm not worried too much about the physics aspect of this because it is not important to my game. Also I though of rotating the world to make it seem like the character rotated, but if you rotate a cube the corner becomes higher than the players position.

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

No one has followed this question yet.

Related Questions

Move object relative to its axis 2 Answers

World and Local Axis out of Alignment 1 Answer

Moving an object on a local axis of another object 0 Answers

Isometric + Orthographic Player Movement 0 Answers

Can a ball rotate without moving and changing its axis? 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