Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

4
Rolling vs bounce/hit
Post Body

I for the life of me can not figure this out.

The object you play in my game is a physics ball. Most things I can get to work except for the right sounds to play.

When I bounce or hit a wall, I want to play a bouncing sound. When I'm rolling on the ground (or maybe the wall) I want to play a rolling sound. I've tried detecting velocity, the impact velocity or using delays for the bounce sound and nothing seems to work the way i need it without playing the bounce sound a million times (literally) or just not working at all. Using onHit or even overlap does not work the way I need it to.

Think marble blast platinum for reference i guess.

When I'm in contact with the ground and moving, play rolling noise.

When I collide with ground or wall to bounce, play bounce noise.

Bonus points for helping me play different sound based on surface material.

If anyone knows how to help or a good solution to this problem it would greatly appreciated. Thanks!

Author
Account Strength
80%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
177
Link Karma
91
Comment Karma
86
Profile updated: 7 hours ago
Posts updated: 3 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 months ago