Difference Between Bounding Box and Transform Node

oof I would go about this a totally different way. One second.

There are a million ways to do this, and the way I set it up is honestly overkill and not even the best way to do it.

If I had just snowmen that I was having to move around a plane with other snowmen id do a real simple AABB algo and just check if the

snowmen.forEach( otherSnowman =>{
if(snowman == otherSnowman){return}
let direction = snowman.position - otherSnowman.position
const distance = direction.length()
const r2 =  snowman.lowerRadius + otherSnowman.lowerRadius
const eps = 0.001
if(distance < r2){
 snowman.position = otherSnowman.position - direction.normalized().scale(r2 + eps)
}
})

snowman.position - otherSnowman.position < snowman.lowerRadius + otherSnowman.lowerRadius on all the snowmen and if it came back with a true I would offset the snowman by the direction times the sum of the lower sphere radii.

If you are trying to move with physics then we have to do something completely different, this is a cat skinning question. There are a million ways to accomplish it just grab a method that matches your needs the best and make it work.

1 Like