#STATICBODY2d and Area2d

1 messages · Page 1 of 1 (latest)

tacit iron
#

I need to see the script to find the error I guess

novel atlas
#

if u mean it cant go through it then u could make a staticbody 2d and put an area2d next to it

#

it would be janky but it would work

#

u could also delete the area 2d if u need

tacit iron
#

I guess he wants custom collision behavior. An area could be valid for that

paper thistle
tacit iron
#

Do you need it to work from all directions?

tacit iron
#

Instead of an area, you could use a static body as wall and check on the moving object for collisions.

func _physics_process(delta: float) -> void:
    var collision = move_and_collide(velocity * delta)
    if collision:
        velocity = velocity.bounce(collision.get_normal())
paper thistle
#

U can use staticbody to make things that touches bounce?

#

Im new to godot

tacit iron
#

Hmm, you should start with something simpler then maybe ^^'
You need to script to make collisions work, especially if you want your own collisions

paper thistle
#

Okay switching back to unity

#

Bye godot

tacit iron
#

bye

paper thistle
#

Unity is way better

tacit iron
#

Nobody stops you xD

paper thistle
tacit iron