Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / collision force tier 1

Author
Message
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 4th Nov 2013 05:20 Edited at: 4th Nov 2013 05:41
Is there a way to return the collision force of two objects colliding?

[edit] Well I was going to bed but I just couldn't stop until I had it. This is the closest I could come up with, which actually works really well.



Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 4th Nov 2013 12:00
emm, its defined here :
SetSpritePhysicsRestitution( iSpriteIndex, restitution )
+
SetSpritePhysicsMass

i don't know any commands in agk but it seems you have all values for calculating it.

https://en.wikipedia.org/wiki/Acceleration
https://en.wikipedia.org/wiki/Collision

AGK 108 B19 : Windows 8.1 Pro 64 Bit : AMD Radeon HD 6670

Login to post a reply

Server time is: 2024-05-20 08:14:14
Your offset time is: 2024-05-20 08:14:14