#Trigger animation when entering an Area
15 messages · Page 1 of 1 (latest)
Do not have code, i've just imported the blender model and added a bunch of nodes
I mean the only code I have is the one which makes the CharacterBody3D(player) move around
Looking to use signals, I've made one from the Area3D and connected it to the CharacterBody3d node, the one called area_shaped_entered. I've tried to make it print something when activating the function but nothing happens.
show me this code
oh did you check your collision layers?
I've deleted it, doesn't work. I'm just starting I dunno about collision. For now I just want to do something like this:
move player to area > trigger blender file animation
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
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.
This one seems okay https://www.youtube.com/watch?v=RENAWMRm3WU but just about any basic collision tutorial should get you started
well I don't exact need to make it collide with the blender model itself. it's a really simple project. As easy as I've described it
if it's that simple then you can find the answer in 5 minutes of watching a tutorial video, and seeing them set it up in the editor would be a lot more helpful to you than me trying to explain it.
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
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.
I'm a beginner i'm trying to explain thing at the best of my abilities since I do not know much about godot