#Create a sensor using Area2D
1 messages · Page 1 of 1 (latest)
The code that's supposed to create the shape inside the mentioned function is completely wrong I think.
You are trying to set a lot of properties that don't exist on a CollisionShape2D
https://docs.godotengine.org/en/stable/classes/class_collisionshape2d.html#class-collisionshape2d
Inherits: Node2D< CanvasItem< Node< Object A node that provides a Shape2D to a CollisionObject2D parent. Description: A node that provides a Shape2D to a CollisionObject2D parent and allows to edit...
I must be confused with Godot 3.
Apart from that, do you have any criticism on that in general?
When you eliminate all the bugs so it can actually run I'll be happy to take another look at it 😉
fair 😛
Looks good to me. I don't know what's up with the cone, if its supposed to be concave you need to switch to a concave shape obviously.
Btw deg_to_rad() is a built-in function 😉
You can't just change the type from convex to concave. If you try then it upgrades from a warning, to an error 😄