Quantcast
Viewing all articles
Browse latest Browse all 1466670

2D movement: velocity.y mysteriously changes

Hello everybody! I'm new to Unity.
I have a problem makes me crazy.




I have a really simple 2D project.

- One object Rigidbody2D Dynamic

- One single big rectangular texture with a box collider 2d as a floor

- A second floor made by some tiles on a tilemap. The tilemap has a tilemap collider 2d and a composite collider2d ( with a Rigidbody2D static needed from the composite collider ).






I move the Dynamic Rigidbody2D with this script:


Code (CSharp):
  1. using System.Collections;
  2. using...
2D movement: velocity.y mysteriously changes

Viewing all articles
Browse latest Browse all 1466670

Trending Articles