-
-
Notifications
You must be signed in to change notification settings - Fork 60
Bad logic in: Rapier physics is not available! Is the extension installed? #505
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
🐛 Description
There is a bad logic in interpretation of if there is not Rapier installed.
Steps to reproduce
Project -> Tools -> Enable Rapier Physics driver
Expected behavior
Because Rapier Physics addon is installed, I expect that it can be enabled.
Observed behavior
in file "physics-driver-toggles.gd":
func get_error_messages() -> Array[String]:
if not ClassDB.class_exists("RapierPhysicsServer2D") or not ClassDB.class_exists("RapierPhysicsServer3D"):
return ["Rapier physics is not available! Is the extension installed?"]
return []
Versions
- Godot version: 4.5-stable
- netfox version: 1.32.0
Notes
change "or" by "and" because if here is no any of the Rapier Physics we can say there is none of it. But not if only we don't have one. Of course, to be more specific we can have a separated 2D and 3D enabler part (as Rapier does).
Rapier suggest and forces to use only one at time: 2D or 3D but not both.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working