- Home /
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?"
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.
this shouldn't be an answer. I will reread what i typed.
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
@$$anonymous$$akinGames Can you help me? Your answer really helped on the last question
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
Follow this Question
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