Shape does not work (CollisionShape2D)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ismaelgame7
:warning: Old Version Published before Godot 3 was released.

Hello,

I do not know what I’m doing wrong, look:
https://postimg.org/image/6i47beuv4b/

When one object collides with another (KinematicBory2D)
the collision does not go, the object simply passes through the other.

Can someone help me?!!?!!

:bust_in_silhouette: Reply From: Skyfrit

You cant use CollisionShape2D in code.

var rectangleshape = RectangleShape2D.new()
rectangleshape.set_extents(Vector2(5, 5))

var rigidbody = RigidBody2D.new()
rigidbody.add_shape(rectangleshape)
add_child(rigidbody)
:bust_in_silhouette: Reply From: ismaelgame7

Not yet able to put a shape in KinematicBody2d!!!
Look: https://postimg.org/image/72iv454nmz/

Tell me can not put a collision node in a kinematinc2D?
help me plz!

I made this example project.

Dropbox - File Deleted - Simplify your life

Skyfrit | 2017-10-11 18:26

Ok, thank you! ^^

ismaelgame7 | 2017-10-12 12:46