Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by OptimusPrime. 08/15/26 23:39
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/15/26 09:47
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Lapsa, OptimusPrime), 6,075 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Checking other ph ent's stats #15847
06/25/03 12:57
06/25/03 12:57
Joined: May 2002
Posts: 757
NY, USA
GhostDude Offline OP
Developer
GhostDude  Offline OP
Developer

Joined: May 2002
Posts: 757
NY, USA
How would you be able to check the physics stats of a physics entity, such as mass and elasticity? For example, if two entities collide and they need to check each other's mass, how would you do this? Also, how can you check if an entity is a physics entity at all? Sometimes if im not careful i get "not a physics entity" warning when using events and i think that checking before to see if the event causing entity was a physics entity would solve this problem.


Lead Programmer of Realspawn Productions AIM: gh0s7mp630 MSN: [Email]"mpratt630@hotmail.com"[/Email]
Re: Checking other ph ent's stats #15848
06/25/03 13:02
06/25/03 13:02
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
i also needed this and solved it with skills. i think there is no better way?

my._physics=1;
my._mass=40;
...
phent_setmass(my,my._mass,ph_box);

if(you._physics==1)...

Re: Checking other ph ent's stats #15849
07/02/03 07:41
07/02/03 07:41
Joined: Jun 2003
Posts: 25
California, USA
Maxx3D A6 Pro Offline
Newbie
Maxx3D A6 Pro  Offline
Newbie

Joined: Jun 2003
Posts: 25
California, USA
Thank you Ventilator! [Smile]


-Maxx3D 3D Modeler/Animator Realspawn Productions - Ultra Line Software

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