hey guys,
i’m having some trouble with linking the of_soundplayer to the centre of mass and the boundingbox.
i would like to play some sounds when the centre of mass is on a certain point. does anyone have some tips?
Bram
hey guys,
i’m having some trouble with linking the of_soundplayer to the centre of mass and the boundingbox.
i would like to play some sounds when the centre of mass is on a certain point. does anyone have some tips?
Bram
// calculate centre of mass
// calculate distance between centre of mass and 'a certain point'
// if ( distance < threshold )
// {
// play sound
// }