RuralBrick / BitsAndBullets

https://ruralbrick.itch.io/bits-and-bullets
0 stars 0 forks source link

Basic player prefab #3

Closed RuralBrick closed 5 months ago

RuralBrick commented 5 months ago
RuralBrick commented 5 months ago
Alex-Hen commented 5 months ago

Interesting note: If we want the rotation to snap instantly to the direction of motion, then the transform option seems like our best bet. However, this causes some interesting clipping when you try to rotate into a wall. I tried to use torque and rigidbody rotation to resolve this, but the torque turns the sprite into the worlds fastest figit spinner and also adds some lag during the rotation, and the rigidbody rotation has even more clipping.

TLDR: We can resolve rotation issues by choosing a circular sprite.

RuralBrick commented 5 months ago

@Alex-Hen I agree that using a circular sprite (+ directly manipulating rotation) works best.