My object does not fall freely on the ground but goes down very slowly and with a constant speed.
What may be due?
Update: I added this video to show what happens.
Please keep in mind that:
-
CardOne has enabled animation
-
CardTwo has disabled animation
Furthermore, the behavior of CardTwo is what I expect from the gravity effect, but I need to apply the animation.
I added two new screenshots.
3 Answers
3
Add a rigidbody and play around with the gravity? That might work
You could use something like RigidBody.AddForce() multiplied by a timer or change the gravity value over time?
@xXCastigamattiXx Does it fall through the ground or is it that you need it to fall faster? If you need it to not fall through the ground, try parenting it with an empty Gameobject with a boxcollider. It should help. If you need it to fall faster, try scripting the translate on the vertical axis like this
(0f,transform.Translate.GetAxis(Vertical)10fTime.deltaTime,0f)
That is for part of a script of mine except now when you press the down arrow key it will drop faster.
Ok I see what is the problem, but I don’t know how to fix it. It seems to me that you will have to manually make the card go down faster. It is easy with transform.Translate , that way it will fall down faster or rather move down faster. The motion will normally stop when the card hits the table or the your “pane” since you have a box collider.
– eatsomechickenCan i see your code?
– eatsomechicken