Skip to content

Bad logic in: Rapier physics is not available! Is the extension installed? #505

@Anyeos

Description

@Anyeos

🐛 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions