Godot Version
4.6
Question
How can I make an object that my player is holding use collision and have the player also respond to the collisions?
I’m pretty sure my description is weak so here’s the scenario:
I have a player object that responds correctly to collisions - a large cube in the player path stops the player, etc.
Next, I add and object glb as a child to the player - let’s say simple lance created in Blender.
I can easily add a CollisionShape3D to the lance as a child, but when the lance encounters the cube it passes right through.
What I’ve done is to add another CollisionShape3D to my player that approximates the lance. This works, however, the collision shape is a child of the player, not the lance .
While it works, it means that my lance object does not have a collision shape, and each time I use that object, i need to create a new collision shape.
is there any way to add the collision shape as a child the lance, preferably in the glb file (or as a tscn) and have it affect the player?