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:
2D movement: velocity.y mysteriously changes
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):
- using System.Collections;
- using...