|
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood),
1,268
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: PhysX movement
[Re: Ch40zzC0d3r]
#388204
11/29/11 18:07
11/29/11 18:07
|
Joined: Dec 2009
Posts: 53
Vyshess
OP
Junior Member
|
OP
Junior Member
Joined: Dec 2009
Posts: 53
|
Ah!! that is what i wanted to know. it effects only it`s own entity. that means the box (and any other entity that should be effected by the explosion) need pXent_addexplosion and not the bomb itself!
@Ch40zzC0d3r ...it isn`t so easy..it would be easy if the explosion of one entity hits all physical entities. But thanks for your help guys!!
A8 Commercial A5 Standart --------------- created games: - Bomber Maniacs
|
|
|
Re: PhysX movement
[Re: Vyshess]
#388208
11/29/11 18:28
11/29/11 18:28
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
No problem Now to your new problem: My solution was to make a c_scan and give the box the event for scan_detect. Now when it get scanned, i calculate the difference between the object and the explosion (position). Than I add this factor to the explosion and all is working fine. BTW: It is so easy. Try what I said in the post above. All entities are looped and will "explode". I will test this now too.
|
|
|
Re: PhysX movement
[Re: Ch40zzC0d3r]
#388210
11/29/11 18:42
11/29/11 18:42
|
Joined: Dec 2009
Posts: 53
Vyshess
OP
Junior Member
|
OP
Junior Member
Joined: Dec 2009
Posts: 53
|
okay i use c_scan and it works! but now i have another problem. the box flys to fast..even by a force of 5. so i set a mass for the box. 50 is a good value because the box behaves as i want.but now the box falls through the level. i tried different values. if i use 9 or less the box lands correctly on the ground. if mass is 10 or more, the box falls through the ground...is this a bug???
Last edited by Vyshess; 11/30/11 18:07.
A8 Commercial A5 Standart --------------- created games: - Bomber Maniacs
|
|
|
Re: PhysX movement
[Re: Ch40zzC0d3r]
#388431
12/02/11 20:31
12/02/11 20:31
|
Joined: Dec 2009
Posts: 53
Vyshess
OP
Junior Member
|
OP
Junior Member
Joined: Dec 2009
Posts: 53
|
i decrease both! but this can`t be the reason, because even if i touch the box with the player, the box falls through the ground.
A8 Commercial A5 Standart --------------- created games: - Bomber Maniacs
|
|
|
Re: PhysX movement
[Re: Ch40zzC0d3r]
#388583
12/04/11 18:48
12/04/11 18:48
|
Joined: Dec 2009
Posts: 53
Vyshess
OP
Junior Member
|
OP
Junior Member
Joined: Dec 2009
Posts: 53
|
suddenly it works...don`t know why... okay, back to the movement of the player. the bomb (the box and other entities) falls down very realistic. but the player falls very fast and strange from a platform.and the bomb can land on other entities (like the box)..the player couldn`t. is it possible to fix that?
A8 Commercial A5 Standart --------------- created games: - Bomber Maniacs
|
|
|
Re: PhysX movement
[Re: Vyshess]
#388619
12/05/11 06:04
12/05/11 06:04
|
Joined: Oct 2011
Posts: 1,082 Germany
Ch40zzC0d3r
Serious User
|
Serious User
Joined: Oct 2011
Posts: 1,082
Germany
|
You need to set some infos about your player like mass etc.
pXent_setmass(my, 50);
pXent_setdamping ( my, 50, 50 );
pXent_setfriction(my, 20);
Hope this helps you.
|
|
|
|
|
|