Discuss Scratch

kingare1
Scratcher
60 posts

Better physics and collision detection needed

repeat (10)
Put variable block here

end

There needs to be better collision detection (color is touching color and if touching color) because sometimes it doesn't work for me.
There also needs better physics of the variables to make something look as if it was swinging around the bottom of an object.

turn counterclockwise (put number) for infinity 

That works but…

tu
turn clockwise (put number) until touching color (put color here)

needs to have better collisions

[/i]

Thank you to those who replied and quoted to this topic.

This signature is unknown! Come back later.
gems89
Scratcher
1000+ posts

Better physics and collision detection needed




Workaround:

when green flag clicked
forever
turn ccw (...) degrees
end

when green flag clicked
forever
if <touching color [#ADD8E6] ?> then

end
if <not <touching color [#ADD8E6] ?>> then
turn ccw () degrees
end
end

Last edited by gems89 (March 29, 2017 23:57:58)

jromagnoli
Scratcher
1000+ posts

Better physics and collision detection needed

What would you define as “good collision”?




ROAD TO 10,000 POSTS
████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 64%










If you can read this, my signature cubeupload has been eaten by an evil kumquat!
hehehe!Mytiptopsecrettopicidentifier!ahjdgggfhjadggahjsahasgdjfsdjfga

kingare1
Scratcher
60 posts

Better physics and collision detection needed

gems89 wrote:

Workaround:

when green flag clicked
forever
turn ccw (...) degrees
end

when green flag clicked
forever
if <touching color [#ADD8E6] ?> then

end
if <not <touching color [#ADD8E6] ?>> then
turn ccw () degrees
end
end
Thanks! May try in the future. :)
Rating: 9 out of 10

This signature is unknown! Come back later.
kingare1
Scratcher
60 posts

Better physics and collision detection needed

jromagnoli wrote:

What would you define as “good collision”?
The ball isn't colliding with the color correctly. That's what I mean.
Rating: No Rating

This signature is unknown! Come back later.
miniepicness
Scratcher
1000+ posts

Better physics and collision detection needed

kingare1 wrote:

jromagnoli wrote:

What would you define as “good collision”?
The ball isn't colliding with the color correctly. That's what I mean.
Rating: No Rating
Rating: ★★★★☆
Please stop posting ratings, it can make people feel bad if they get a low one.

Last edited by miniepicness (March 29, 2017 21:39:22)

kingare1
Scratcher
60 posts

Better physics and collision detection needed


miniepicness wrote:

kingare1 wrote:

jromagnoli wrote:

What would you define as “good collision”?
The ball isn't colliding with the color correctly. That's what I mean.
Rating: No Rating
Rating: ★★★★☆
Please stop posting ratings, it can make people feel bad if they get a low one.
I don't usually give bad ones, but i'll stop.

This signature is unknown! Come back later.

Powered by DjangoBB