You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("You are now leaving omicronOS. Press Shift+Q to close the application.")
9
11
app=Ursina()
10
12
11
13
stepper=True
12
14
15
+
16
+
defdisableBox():
17
+
globalboxOne
18
+
ifboxOne==True:
19
+
dragbox.parent=globalpos
20
+
temppos.position=globalpos.position
21
+
boxOne=False
22
+
dragbox.parent=temppos
23
+
dragbox.x=player.camera_pivot.x
24
+
dragbox.y=0.4
25
+
dragbox.z=player.camera_pivot.z
26
+
print(dragbox.position)
27
+
print(player.forward)
28
+
dragbox.collider='box'
29
+
distancemodifier=0.6
30
+
#CHANGE NONE OF THE FOLLOWING 9 LINES OF CODE. I am fully aware it jank as all hell, but this is so the player doesn't get stuck inside the box and frankly I don't want to do any more god damn calculations over this fucking dumbshit box
31
+
ifplayer.forward.x>0:
32
+
dragbox.x+=player.forward.x+distancemodifier
33
+
elifplayer.forward.x<0:
34
+
dragbox.x+=player.forward.x-distancemodifier
35
+
36
+
ifplayer.forward.z>0:
37
+
dragbox.z+=player.forward.z+distancemodifier
38
+
elifplayer.forward.z<0:
39
+
dragbox.z+=player.forward.z-distancemodifier
40
+
print("BB")
41
+
#alright, from here on out you're good to edit what you please.
0 commit comments