// Called when squid is selected and has opportunity to capture
// user interaction
// Returns if and how the interaction was captured
Called when squid is selected and has opportunity to capture
user interaction
Returns if and how the interaction was captured
Called when squid is selected and has opportunity to capture user interaction Returns if and how the interaction was captured
pub fn interact(&mut self, interaction: &Interaction, camera: &Camera, _options: &InteractionOptions) -> Capture {
        match &mut self.data {
            SquidData::Rect(rect) => rect::interact(rect, interaction, camera),
            SquidData::Circle(circle) => circle::interact(circle, interaction, camera),
            SquidData::Tri(tri) => tri::interact(tri, interaction, camera),
        }
    }
pub fn interact ( & mut self , interaction : & Interaction , camera : & Camera , _options : & InteractionOptions ) -> Capture { match & mut self . data { SquidData :: Rect ( rect ) => rect :: interact ( rect , interaction , camera ) , SquidData :: Circle ( circle ) => circle :: interact ( circle , interaction , camera ) , SquidData :: Tri ( tri ) => tri :: interact ( tri , interaction , camera ) , } }
Called when squid is selected and has opportunity to capture
user interaction
Returns if and how the interaction was captured
Called when squid is selected and has opportunity to capture user interaction Returns if and how the interaction was captured
&mut self
interaction
&Interaction
camera
&Camera
_options
&InteractionOptions