Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by rXp · Oct 14, 2016 at 02:13 PM · physics2dcollision detectionboxcollider2d

Manual collision detection ?

Hello,

I am currently trying to make a simple custom collision system because I need to be able to set everything to the frame and not in real time. A character jump my be 75 frames long and a kick 15 frames. I only use boxcollider and boxcast to detect collisions.

I already made a micro-physics engine that compute the jumps, projectile, run... but now I need good collisions and I got some issues with that. First of all I am not 100% sure how to use boxcast and secondly I am not sure if it is the best way of approaching the situation.

Should I "simulate" gravity constantly ? (the character is always pushed down) Should I check for collisions before moving the character or after and correcting the position ?

What advice could you give me ?

Thanks

rXp

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 Zodiarc · Oct 14, 2016 at 02:16 PM 0
Share

Why are you doing everything frame based? Do you know which problems it may cause? As long as you won't multiply anything by Time.deltaTime it's not time based.

avatar image rXp · Oct 14, 2016 at 03:03 PM 0
Share

@Zodiarc I want to make a fighting game engine in Unity. I am an Unreal Engine 4 user but for 2D stuff unity is clearly better so I'm learning while doing here. $$anonymous$$aybe I'm tackling the issue the wrong way but I need frame perfect control on everything. I also needs a very basic but personal physic engine and the collisions that come with it. Depending on the animations I will have different hitbox and hurtbox, the startup frames and recovering frames of the moves must be settable too. The jump gravity must be different for each character but the same if they get hit in the air etc...

If I'm doing things I should not do please tell how I can simplify everything :) Because I feel like I'm taking the long road.

avatar image Zodiarc rXp · Oct 17, 2016 at 07:22 AM 0
Share

Well I don't have experience in fighting games but this could maybe help https://www.youtube.com/watch?v=vUR7hzamTRs&list=PLO8VSSi-H$$anonymous$$WTpBk7WIEL_iVfyQLebqtiJ https://www.youtube.com/watch?v=mvV$$anonymous$$1RB4HXk https://www.youtube.com/watch?v=n8S3WgVoOmo https://www.youtube.com/watch?v=$$anonymous$$581J4JUGPc

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.

Follow this Question

Answers Answers and Comments

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

how to clamp( set max value) the velocity of a 2d rigidbody? 1 Answer

How to let player hit a boxcollider just once?(2D) 1 Answer

Unity : How to handle compound colliders 2D physics collision detection 0 Answers

rigidbody not moving 1 Answer

Is it possible to have two 2D colliders touch and then ignore each other while still listening for collisions with other objects? 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