Gamestudio Links
Zorro Links
Newest Posts
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 7,381 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
physX, finding out the Collusion strength #376753
07/06/11 13:59
07/06/11 13:59
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Just a questine.
Is there a way to figure out how strong an physX object crashes into another object (wall, physic objects, polygons, entitys)?

This would be very helpfull.



Re: physX, finding out the Collusion strength [Re: Random] #376788
07/06/11 18:56
07/06/11 18:56
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Does "pXent_getvelocity" help?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: physX, finding out the Collusion strength [Re: Superku] #376876
07/07/11 09:17
07/07/11 09:17
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Im not sure.
Can I use this in a "if" function?
"if physicobject_speed == 10"
Im serching for a possibality like that.

But I noted that the physic objects, move much smoother with this function;
Click to reveal..
pXent_getvelocity(my, temp, nullvector);
vec_inverse(temp);
vec_scale(temp,0.5);
pXent_addforcecentral(my, temp);




Re: physX, finding out the Collusion strength [Re: Random] #377789
07/16/11 10:54
07/16/11 10:54
Joined: Aug 2010
Posts: 26
J
JHA Offline
Newbie
JHA  Offline
Newbie
J

Joined: Aug 2010
Posts: 26
Hello
You can calculate collision energy by using kinetics energy formula:

Ek=0.5*m*v**2, where
Ek: kinetic energy in Joules
m: mass of moving object
v: velocity

Jarkko


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