+1 vote

Hi. Here's the code:

for index in range(get_slide_count()):
    var collision = get_slide_collision(index)
    var object = collision.collider

get_groups() method returns only empty arrays even though colliders are in groups. The problem is that collision.collider returns Object that doesn't have get_groups() method but Node does. I tried adding as Node to the variable but it didn't help. What should I do?

Note: yet somehow similar code works in "your first 3D game" demo

Godot version 3.4.4
in Engine by (20 points)
edited by

Are you sure the collider is the object/node that you think it is?

I suppose as it inherits from Node

1 Answer

0 votes
Best answer

Nevermind I solved it :'D

by (20 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.