function Script:Collision(entity, position, normal, speed)
if entity:GetKeyValue("name") == "Caja" then
entity:AddPointForce(position,Vec3(0,5,12),true)
entity:SetOmega(Vec3(0,0,0))
end
end
Today, trying to implement this, I have the following problem.
Initially a collision is checked, so the box is propelled no matter what collides with the boxes, in this case the player's controller is colliding before the bone in the right foot.
This implies that the boxes are thrown with force when touching the player's controller, my question: How do I associate that this only happens when the right foot bone touches the box, in this way when making this collision throw the boxes away. This is because the kick should only be activated when the player or the mesh performs the animation of the kick, this implies that the foot touches the box.
Translated with www.DeepL.com/Translator