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 /
avatar image
0
Question by JamesReubenGruta · Jul 21, 2011 at 02:11 PM · physicsplayertouchcollideimpact

How can I make my character collide with physics objects?

Hello there everyone! Im quite new in game development and i just want to know how can i imitate the physics in Max Payne? when Max walks and collides with boxes the boxes push away. I think there is a component needed to be attached to the player and the object in order for this to work but i dont know what are the settings for this please help if it is possible :)

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 SisterKy · Jul 21, 2011 at 03:22 PM 2
Share

Since I have very limited experience myself, I can't answer your question. But as a hint to draw in people who might know stuff: change your title. People around here don't like to answer questions like 'how can I mimic game x-y'. Just make it 'how can my third-person-character push GameObjects around when he collides with them?".

Also remove the 'max payne'tag. If someone was looking for the same answer as this question could provide, chances are very low that they would check for 'max payne', as this is by no means specific to this game or anything....

However, it's quite possible that this question has been answered before. $$anonymous$$aybe you'll consider looking for it yourself first. That would be greatly appreciated. Use the custom unity google search http://www.google.com/cse/home?cx=002470491425767499270:iugs1ezlsfq and look for something like 'pushing boxes around' etc...

Greetz, $$anonymous$$y.

avatar image Jason B · Jul 21, 2011 at 03:29 PM 1
Share

I've edited the title and tags to better reflect the actual question.

avatar image JamesReubenGruta · Jul 21, 2011 at 05:33 PM 0
Share

Thank you bro! im not that familiar for this kind of mistake in title and tagging about this matter please bear with my beginner's disease. :)

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Chris D · Jul 21, 2011 at 03:30 PM

You're talking about one of the very basics of an engine like Unity: collisions and rigidbodies.

Run through a tutorial or two to get your bearings (and see examples of collisions in action - they're in almost every one). Read through the documentation on the Unity site (under support) and read up on the individual functions you're concerned with.

Colliding with objects and having them be affected is built in but you'll need to know how Unity's system works before you'll actually understand why.

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
avatar image
0

Answer by Jason B · Jul 21, 2011 at 03:31 PM

In order to make anything collide with rigidbodies, including other rigidbodies, an object must have a Collider component attached to it. That is the only requisite.

If you want to test this, it's extremely simple.

One, make a simple placeholder for your character. Wire it up with extremely simple movement through scripting. Apply a Collider to the character.

Put rigidbodies around the scene. Walk your character into them, and they will be pushed around. It's quite simple, really. I recommend reading about this topic in the manual. Everything I've said is covered in it.

Comment
Add comment · Show 1 · 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 JamesReubenGruta · Jul 21, 2011 at 05:35 PM 0
Share

Jason i understand th use of rigid bodies but i need a better example for it, e.g. using the built in 3rd person character you can attach a rigid body into it and set the kinetics, etc in the inspector.. and create a simple cube and apply rigid bodies into it with these settings. To be specific i used $$anonymous$$ax Payne as an example for that kind of physics (there so many kinds of physics application in games anyway) simple as the box will be pushed aside when i collide to it.

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Detecting Touch on moving Object - Help Needed! 1 Answer

Non slippery movement 1 Answer

No Collision 3 Answers

Small objects don't collide 1 Answer

how make this script follow a target. 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