Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,574 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Colllision events in Physics [Re: fastlane69] #28514
06/12/04 17:30
06/12/04 17:30
Joined: Jan 2004
Posts: 107
India
L
Lord_RazermanX Offline OP
Member
Lord_RazermanX  Offline OP
Member
L

Joined: Jan 2004
Posts: 107
India
I tried sampling the velocities, but there are 2 instances when velocity of a PE approaches 0 , once when its rising from the ground after impact and second when its reaching max ht. The sampling part didnt work, the object produces sound on impact but it keeps producing sound while it rises an sound stops when it starts falling down again, I am using 3 entities and my code does occasionally kill the frame rate(comes to 30 minimum).

Have you got a code to manage sound collisions, can you please post it if you do have one?


Our team is looking for prospective members. Intermediate skills are minimum, No amateurs. Our team can have members from anywhere ,so long theres an international bank around We need a modeller,2d artist and level designer
Re: Colllision events in Physics [Re: Lord_RazermanX] #28515
06/13/04 10:23
06/13/04 10:23
Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Rhuarc Offline
Expert
Rhuarc  Offline
Expert

Joined: Mar 2001
Posts: 3,298
Beverly, Massachusetts
Try using a larger threshold for the velocity (play if collision and velocity < 5 instead of < 3 for example)

You could also use a timer that disables the sound long enough for it to settle, this can be done easily by simply setting event to NULL, waiting, and then reactivating the event.

-Rhuarc


I no longer post on these forums, keep in touch with me via:
Linkedin.com
My MSDN blog
Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1