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 martin101 · Dec 13, 2014 at 09:45 AM · physicsraycastoptimizationphysics2d

Character Controller 2D physics or raycast ??

Hey people, i have to make a massive 2D character Game limited to X and Y axis.

Which way is best for mobile devices ? the inbuilt Engine or the Raycast method ?

Comment
Add comment · Show 3
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 martin101 · Dec 13, 2014 at 10:02 AM 0
Share

@Bored$$anonymous$$ormon sir could you please reply and I apologies for direct reference :(

avatar image EvilTak · Dec 13, 2014 at 11:54 AM 0
Share

Raycasts serve a different purpose than all the rigidbodies, colliders, joints etc. in the physics engine. You should elaborate more on what are your requirements, your gameplay, etc. For example you would use Physics2D.Raycast to simulate guns and bullets in your game. But if you don't have a shooter game then using the inbuilt rigidbody2ds and collider2ds is better.

avatar image martin101 · Dec 13, 2014 at 12:48 PM 0
Share

its a simple 2D side stroller with lots of trigger. i dont think there is anykind of shooting is involved. i found about the CharacterController2D plugin made by prime31 and thinking to use it.

but then there are various tutorials out there which use physics engine, some use Raycast. and i could not decide what to use obviously because of lack of experience :)

@Evil Tak thanks. if anything else you want to suggest i would love to hear it. than you so much

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by EvilTak · Dec 13, 2014 at 02:51 PM

If you have a 2d side scroller I would definitely recommend usong the inbuilt physics as it provides all the functionality for a side scroller. But then again, it depends on your requirement ;)

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

26 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 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

2D Raycast Layer Mask not working 1 Answer

Understanding Raycast How Actually works in Unity [As Algorithm] 2 Answers

Raycasting not behaving as expected? 2 Answers

Physics.Raycast to Physics2D.Raycast? 1 Answer

Optimization of bullet hit calculation per frame 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