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 Omerl_ahire · Jul 25, 2018 at 11:01 PM · raycastingpositioningcharacter movementclimbingmonster

Can I make the player stick to a moving hit point?

Hi, I'm making a third person climbing system climbing system where you can climb monsters like shadow of the collosus or dragons dogma.


Right now my character can climb on wall and around corners, climb from object to object and IKs all work but the character does not follow the object it is climbing if it moves.alt text


You might be about to say just set the character to be the child to the object, but in final project the player will be climbing on animated models, so I will need the player to stay at the point on the surface of the colider.


Is this possible to have the character remember a point on a surface and follow it?
Any help would be appreciated. Thank you.

ezgifcom-optimize.gif (408.2 kB)
Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by aidan7501 · Jul 26, 2018 at 12:59 AM

Maybe try raycasting a point from the player and telling it to move to the hit point.

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 Omerl_ahire · Jul 26, 2018 at 08:58 AM 0
Share

The problem with that is the object is moving so the raycast hit point will be in front of the player rather than following the motion of the surface.

If you mean raycast to the last point the player was at I think that I would only be able to get the vector3 of the hit point, unless there is a way to store hit point locations relative to the hit point object.

avatar image
0

Answer by AdityaViaxor · Jul 26, 2018 at 05:31 AM

in Big games where you climb on monster they actually ask you to press key and when you press key they play animation of climbing and get you direct to player head and then you have to hit him in head or something like that so may be try playing animation.

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 Omerl_ahire · Jul 26, 2018 at 08:51 AM 0
Share

I already have the climbing set up and animations arent a problem, I can press E and the character will move to the nearest surface within 0.4 meters and enter the climbing state.

The problem I have is that I don't know how to make the character climb on a surface that is moving,

Right now if the surface is moved when the character is on it she will stay hovering in the air where the surface used to be.

avatar image
0

Answer by Omerl_ahire · Jul 27, 2018 at 12:31 AM

I have solved the problem.


I just made the player and climb helper be children of whatever object they are climbing.alt text


ezgifcom-optimize1.gif (511.8 kB)
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 AdityaViaxor · Jul 26, 2018 at 12:10 PM

Idea, first of all player will hit boss from ground then after reducing some xps make boss stop so it wont move and your player will climb on it or make a player child of boss so it will move with boss. what do you think??

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

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

93 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 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 make char animation idle 0 Answers

Creating objects and positioning next to a previous one 0 Answers

Issues with 2d Player controller(Kinematic) 0 Answers

What code would I need to make you can climb 1 Answer

Question regarding character controllers and slopes 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