0 votes


I would like use in func physicsprocess(delta):

var bodiesHit = get_colliding_bodies()

So i used in func _ready():


In Godot 3.0 I haven't any problem.
Now in Godot 3.0 I have a mistake :

Method 'set_max_contacts_reported' is not declared in the current class.

How to solved this ? please ?

in Engine by (57 points)

To what node type this script is attached?

What type to you state in the "extends" line of your script?

Should be RigidBody or RigidBody2D.

Alternatively you could use: contacts_reported = 5.

1 Answer

0 votes
Best answer

I solved the problem :

I just changed :

extends spatial


extends VehicleBody
by (57 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.