• 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 MysticalMrCool · Nov 23, 2020 at 09:33 AM · rigidbody2dbounceplatforms

Player Bounces On Ascending Platform After Platform Velocity Is Updated

Hey everyone, I currently am developing my first Unity2D game and have run into a problem that I just cannot find a working solution to. The game is a falling platformer and I have it set up so that the platforms move up at a velocity of 2 unless the player is touching an invisible collider which causes the platforms' velocity to increase to 10 creating the illusion of freefalling. The issue is that once the velocity has been updated the force of the ascending platforms knocks the player upwards on impact, creating an unintended bounce effect. This seems to be a simple problem however I am yet to have this resolved after spending the last couple of days messing with the code and the RigidBody settings on both the player and the platforms. I decided to test what would if I set the velocity of the platforms to 10 from the start so that it doesn't update during gameplay and, strangely enough, the player does not bounce. It seems the issue lies in the velocity being updated during gameplay. The player body type is dynamic and the platforms' body types are kinematic.

I decided to test what would happen if I set the velocity of the platforms to 10 from the start so that it doesn't update during gameplay and, strangely enough, the player does not bounce. It seems the issue lies in the velocity being updated during gameplay.

So far I have tried:

  • Increasing the mass of the player dramatically - absolutely no effect.

  • Setting player's rigidbody.velocity.y to 0 on impact - nothing.

  • Changing the player's body type to kinematic briefly on impact then setting it back to dynamic - nope.

I see absolutely no reason why this would be happening but despite everything I've tried I imagine there must be an incredibly simple solution. Any suggestions would be greatly appreciated.

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

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

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

2D bouncing ball not bouncing correctly 0 Answers

Bounce into the air 1 Answer

Creating a bounce effect 2 Answers

Problem bounce above collider2D with rigidBody2D 0 Answers

2D Bounce gains energy each time 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges