Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: RayCast3D.get_collider() now returns only CollisionObject3D \(go…
…dotengine#12345\) - Modified the `RayCast3D.get_collider()` function to ensure it only returns `CollisionObject3D` instances. - The function now uses `Object::cast_to<CollisionObject3D>(object)` to perform a safe cast and return null if the object is not of the expected type. - This resolves issues where `RayCast3D.get_collider()` could return objects like `CSGShape3D`, leading to runtime errors and incorrect behavior. Fixes: godotengine#12345
- Loading branch information