Coder Social home page Coder Social logo

Comments (3)

Sud-Puth avatar Sud-Puth commented on July 20, 2024

Hi Sara,

I tried to play with the collision detection when I was working on the
drive mode and I too echo your thoughts that the detection is unreliable.
It can be added as a fun feature but I guess cannot be taken for granted.

On Jul 22, 2016 9:56 PM, "Sara Ford" [email protected] wrote:

Hey all,

I've noticed the collision detection is hit or miss. I've followed this
Issue to tweak the sensitivity
sphero-inc/sphero.js#48, but it is unreliable. I
can pick up BB-8 and a collision is detected. But BB-8 can run into a wall
and lose its head and no collision detected. Seems that the collision has
to be at a certain spot on the ball.

Curious if anyone else has tried to play with collision detection.

Here's my code:

module.exports = function (bb8) {

console.log("Waiting for a collision");

bb8.detectCollisions();
bb8.color("green");

bb8.configureCollisions({
meth: 0x01,
xt: 0x20,
yt: 0x20,
xs: 0x20,
ys: 0x20,
dead: 0x50
});

bb8.on("collision", function(data) {
console.log("collision detected");
console.log(" data:", data);

 bb8.color("red");

 setTimeout(function() { bb8.color("green"); }, 1000);

});

bb8.roll(200, 0);
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#23, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJcu9mkNirIzN3rqUAXhft3lclQYaQkks5qYXSsgaJpZM4JTQT1
.

from bb8-commander.

saraford avatar saraford commented on July 20, 2024

@Sud-Puth Thanks for the response! I tried adjusting the configureCollisions sensitivity to what I'm guessing is the lowest levels and still can't detect a collision. I'll ask on the Sphero repo if no one here has figured it out. Thanks!

from bb8-commander.

clodio avatar clodio commented on July 20, 2024

I just play with sphero edu app and i have the same problem coollision detection not working

from bb8-commander.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.