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 TehWut · May 31, 2012 at 02:05 PM · collisionperformanceiskinematic

rigidbody - kinematic performance

Hello, I am creating a 2D strategy game. I'm obviously going to need to do lots of collisions. The reason I avoid using rigidbodies is because of their performance (and they tend to be a little buggier). BUT, if I use a kinematic rigidbody, how is the performance then? I did read the documentation, but it just says that "no physics calculations, I must use transforms" which I'm fine with. Is it taxing to just check for collisions? that's all I need, is to see the collider is working. Note I'm going to (hopefully) have hundreds of units.

edit: platform is PC

Comment
Add comment · Show 6
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 kolban · May 31, 2012 at 02:42 PM 2
Share

When one attaches a Rigidbody to a Game Object, it is because you want that object to be under the control of the physics engine. Flagging a rigidbody as $$anonymous$$inematic allows us to switch off the physics engine on that object with regards to its own movement.

In your game, are you planning on leveraging the physics engine to move any of your game objects? If not, I'm not sure you need to have a RigidBody attached at all. Detecting when one object intersects with another can be achieved through Collider components flagged as triggerable.

avatar image TehWut · May 31, 2012 at 03:35 PM 0
Share

Oh, you're right....I thought in all this time using Unity that a rigidobdy had to be used for collisions xD..thanks! that's what I need

avatar image TehWut · May 31, 2012 at 03:38 PM 0
Share

on a side note for anyone who actually wants to know the answer - how does iskinematic rigidobdy compare with a standard rigidbody performance wise?

avatar image whydoidoit · May 31, 2012 at 04:39 PM 0
Share

@kolban - is that true about rigidbodies? I didn't know that and the documentation I read implies that you still need a rigidbody!

avatar image kolban · May 31, 2012 at 04:46 PM 0
Share

@whydoidoit - I'm still very very new to Unity so could be extremely wrong but what I read in the docs says "If I flag a collider as 'Triggerable' then if that collider strikes a rigidbody then the rigidbody will not be affected by the collision. Ins$$anonymous$$d, the OnTrigger callbacks will be invoked.

Show more comments

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

OnTriggerEnter Bad Performance - Bad Code? 1 Answer

Collision Performance Question 2 Answers

BoxCast, OverlapArea, and Raycasting; ground detection questions 0 Answers

Why is CapsuleCast/Raycast performance effected by rigidbody? 1 Answer

Collision Killing CPU/FPS/Performance - Suggestions?! 0 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