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 16snathan · Feb 18, 2014 at 09:21 PM · collisionmovementplatformcustomization

Moving Platform Collisions without CharacterController

I am trying to develop a platform game but I cannot get the player to collide with moving platforms.

All of the solutions I have found rely on using a CharacterController, but I am using a custom movement script from this tutorial:

http://www.youtube.com/watch?v=mN8alpNdTUk

How can I get the player to collide with the platform?

Comment
Add comment · Show 1
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 robertbu · Feb 18, 2014 at 09:26 PM 0
Share

With the information given here, this question is likely unanswerable. The scripts in the video use 'custom' physics. That is, he is coding all collisions using Raycasting. From what I can tell, he is not using either Unity Rigidbody/physics or the CharacterController class. That means the fix will be specific to his classes. And my guess is that making this specific fix is beyond the scope of a Unity Answer question. That is, it will take the study and knowledge of multiple scripts from the tutorial in context with an application sample that demonstrate the problem in order to figure out what needs to be changed or extended. Unity Answers is designed for single, specific questions.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by iHaveReturnd · Feb 18, 2014 at 09:24 PM

Just make sure your "player object" has a collider and a rigidbody on it. Sounds like you are missing the rigidbody component. (Component -> Physics -> Rigidbody with your object selected)

Make sure the ground object, or things you run on have colliders as well and that they are not set to triggers.

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 nightbane30 · Feb 18, 2014 at 10:18 PM

As iHaveReturnd said, add a rigidbody component to the GameObject and make sure to check the box, "Is Kinematic." I had trouble with this kind of stuff to at first when I started out with Unity. If you're using Unity's built in animation system, also check, "Animate Physics." This should fix most of the errors!

Off topic: iHaveReturnd, by any chance, are you a Black Adam fan?

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 iHaveReturnd · Feb 18, 2014 at 10:31 PM 0
Share

No sadly, my handle came from Dragoon units in Starcraft 1 :D

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

20 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

Related Questions

How to move multiple dynamic gameobjects with one moving platform which is controlled by the player 0 Answers

Collision problem 1 Answer

Unreliability of Physics.Raycast.Distance for player movement? 0 Answers

Player shaking when colliding with objects 3 Answers

Simple Movement Game: Physics vs Manual Collision Detection? 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