How to make an objects mass increase the longer its air born?
using 3D physics how can I increase an object's mass the longer it's in the air.
what would be the best way to go about this? Thanks for any help if possible.
I'm currently coding in C#
"for some context, I have a character who's movement is based off exerting force in a set direction. currently, it can be pushed infinitely and I want to prevent the player from pushing the character into the stratosphere. "
Answer by $$anonymous$$ · Jun 09, 2017 at 06:57 AM
@tastysushifish You could use oncollisionenter and oncollisionexit to set a boolean flag indicating when your object leaves or touches the ground. When you leave the ground, you could record the time and based on that add mass to the rigidbody the longer it is airborne.
Your answer
Follow this Question
Related Questions
Rigidbodies colliding with each other ignore mass, details inside. 0 Answers
Car steering on a Rigidbody (Mario Kart) 0 Answers
Move camera with touch 0 Answers
How to fix this problem? 1 Answer