change physics to use impulse instead of velocity

This commit is contained in:
ntr committed 2023-08-08 15:45:26 +10:00
1 parent 90dfa02659
commit 05cc5244ea
2 files changed
+7 -8

No files matched your search

+2 -2
View File
@@ -83,7 +83,7 @@ namespace CrosshairComponents {
Vector2 leftArm = new Vector2(centre.x - angleSin * length, centre.y + angleSin * length);
var painter = context.painter2D;
painter.lineWidth = 2.0f;
painter.lineWidth = 1.0f;
painter.lineCap = LineCap.Butt;
painter.strokeColor = m_TrackColor;
@@ -184,7 +184,7 @@ namespace CrosshairComponents {
Vector2 bottomArm = new Vector2(centre.x, centre.y + length);
var painter = context.painter2D;
painter.lineWidth = 2.0f;
painter.lineWidth = 1.0f;
painter.lineCap = LineCap.Butt;
painter.strokeColor = m_TrackColor;