#Trigger animation when entering an Area

15 messages · Page 1 of 1 (latest)

warped tusk
#

share your code please

sonic prism
#

I mean the only code I have is the one which makes the CharacterBody3D(player) move around

warped tusk
#

oh did you check your collision layers?

sonic prism
#

I've made a area_endered node from Area3D, and connected to the CharacterBody3D. On the Char node script sheet there's:
extends CharacterBody3D func _on_area_3d_area_entered(area: Area3D) -> void: pass

warped tusk
#

I'd suggest trying to find a short youtube tutorial or something that covers basic 3D collision, and then apply that to your blender model.

#

That'd be quicker than me trying to explain collision layers and masks and how to set them up.

sonic prism
warped tusk
sonic prism
#

I've made this post because I coulnd't find the answer through yt tutorials.
I've a Character with a camera on it I can move.
I have a Blender model with an animation.
I have and area with a collision shape.

Once the character touches the Area3d the animation shal trigger

warped tusk
#

Okay sorry if I misunderstood. It sounded like you just need to figure out how to wire up the signals and you collision layers properly, which is easily solved, but I suppose that's not the case. Hopefully someone else can help, good luck.

sonic prism
#

I'm a beginner i'm trying to explain thing at the best of my abilities since I do not know much about godot