I have an animation where the player swings a pick axe. i want a collision box to follow the tip of the axe. im using all physics and i was told not to use things like "set position" because they are not physics based. ive tryed using the revolute joint to attach it to a specific image point on the pick axe but the collision box doesnt seem to follow the axe.
to pick up axe hold down right click and click left click to swing.
LINK TO FILE BELOW
drive.google.com/file/d/1PYReZN8gf7w8aq5JFFXKQSDdzcs-7V-a/view
Develop games in your browser. Powerful, performant & highly capable.
I think you may have misunderstood something. You can use "set position" with physics BUT you shouldn´t use "set position" ON something that has the physics behavior.
So setting the position of the collision box on the pickaxe should be fine assuming the collision box doesn´t require physics (which it shouldn´t imo)
WackyToaster I would like to add an impulse or force when touching collision box at some point. so i would need physics on the collision box still right?
Nope. You don´t want to apply that force to the collision box itself, but to whatever object the collision box hits. The collision box doesn´t need physics to do that.
Collision box is overlapping another object > apply force/impulse to object
brentbj
Ok, so I looked through your project and what you will have to do is Pin the hitbox to an image point on the pick in your swinging animation.