Status in collisionCallbacks #1673
HolandonHdunto
started this conversation in
Announcements & others
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
One problematic thing in upbge is that collision by collisionCallbacks has no way to get the status and probably the ways around this get in the way of collision of multiple objects once you put an initiator variable to the start of the collision, like for example :
if object["init"] == False:
print(object)
object["init"] = True
else:
pass
Since a variable is already active, there is no way to reset it as there is no way to get the status of the end of collision. The other objects would be ignored.
def callback_four(object, point, normal, points,status):
if status == 1:
print("start")
elif status == 2:
print("active")
elif status == 3:
print("end")
else:
pass
Beta Was this translation helpful? Give feedback.
All reactions