Skip to content

Commit

Permalink
Fix collision issue with bullets not registering
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rupted committed Apr 27, 2022
1 parent b48a60e commit 66a54f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vitrix/lib/bullet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, position: ursina.Vec3, direction: float, x_direction: float,
if network == False:
self.singleplayer = True

speed = 100
speed = 50
dir_rad = ursina.math.radians(direction)
x_dir_rad = ursina.math.radians(x_direction)

Expand Down Expand Up @@ -44,10 +44,9 @@ def __init__(self, position: ursina.Vec3, direction: float, x_direction: float,
position=position + self.velocity / speed,
model="sphere",
texture=os.path.join(GamePaths.textures_dir, "bullet.png"),
collider=b"sphere",
collider="box",
double_sided=True,
scale=0.2

)


Expand Down

0 comments on commit 66a54f4

Please sign in to comment.