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
-1
Question by awplays49 · Mar 23, 2015 at 10:09 PM · collisionraycast

Having trouble with collision system

Read bottom, the last question is the one i want answered the most

Hi im having trouble making better collision. My options are either sticking with unity collision and making it better somehow (I don't know how) and reducing the "sticking" to walls, or I could make a system with raycast or something. Keep in mind, this is a sandbox game. Its all blocks, so i can't use sphere casts, that wouldnt be right :P

I only use box colliders, and mesh colliders, and cube-related things. So this is a tricky situation for me huh.

Anyways i tried making raycast collision, one ray for each side of me, but then i realized… i need 12 bools for collision because i thought, "what if the ray in the middle passes a block in front of me while jumping? then it wouldn't work"… So i started making 3 rays per side (inefficient) what do i do?

EDIT

I just thought of a possible idea for the solution.. Would it work if i made game objects for each side and added trigger colliders to them, then made 6 scripts and each changed the bools in ontriggerenter?

But i think to myself, "what if this wasn't a 'blocky' game? what would i do then? would i be screwed? what do other people do?"

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by David_Biggs · Mar 23, 2015 at 10:58 PM

Try explaining the problem and asking a proper question, then reading what you've typed. You're all over the place and I have no idea what you're on about.

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 awplays49 · Mar 23, 2015 at 11:04 PM 0
Share

this shouldn't be an answer. I will reread what i typed.

avatar image awplays49 · Mar 23, 2015 at 11:12 PM 0
Share

In the first paragraph im explaining what options i have thought of (of course thats not all the options thats just what i have thought of for solutions :P)

in the second paragraph i stated the reason i can't use sphere casts and capsule casts (cube based game)

in the edits first paragraph, i mentioned another solution i thought off, and how it would work.

in the second edited paragraph, out of curiosity, i ask what would i do if it wasn't a block game, because if it was a high definition game with carefully sculpted and modeled meshes, which wouldn't work with the solution i proposed in the edit of the post.

Hope that clears up my question @$$anonymous$$_Biggs

avatar image awplays49 · Mar 24, 2015 at 12:28 AM 0
Share

@$$anonymous$$akinGames Can you help me? Your answer really helped on the last question

avatar image awplays49 · Mar 24, 2015 at 12:48 AM 0
Share

Oops, I thought you commented on this one, thats what my reply was about. my apologies. But seriously can you check this one out?

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

22 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

Related Questions

Custom Collision Detection 4 Answers

Collision Detection If Raycast Source Is inside A Collider? 4 Answers

Help with a field of sight 3 Answers

raycast hit point is wrong 1 Answer

Camera raycast? 2 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