Gamestudio Links
Zorro Links
Newest Posts
How to Change Multiplier
by vicknick. 06/02/23 03:27
How to buy tomorrow at open?
by vicknick. 06/02/23 03:19
Adding Position to Current Trade
by vicknick. 06/02/23 03:09
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (vicknick, 7th_zorro, Quad), 990 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
brauche eine einfache Physic Box #416525
02/01/13 12:32
02/01/13 12:32
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
Hallo

ich brauche eine ganz einface Physic action, der ich eine
Kiste oder andere Objecte zuweisen kann, damit sie aufen
Boden fällt

Re: brauche eine einfache Physic Box [Re: ratz] #416526
02/01/13 12:34
02/01/13 12:34
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Code:
action pX_box()
{
pXent_settype(me, PH_RIGID, PH_BOX);
}
action pX_sphere()
{
pXent_settype(me, PH_RIGID, PH_SPHERE);
}
action pX_capsule()
{
pXent_settype(me, PH_RIGID, PH_CAPSULE);
}



Don't forget to run physX_open(); at the start of your main function!


Visit my site: www.masterq32.de
Re: brauche eine einfache Physic Box [Re: MasterQ32] #416531
02/01/13 13:27
02/01/13 13:27
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
hmm also ich habs jetzt so gemacht:

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <ackphysx.h>

///////////////////////////////

action test_box()
{
pXent_settype(me, PH_RIGID, PH_BOX);
}


function main()
{
   physX_open(); 
 
	level_load("physic.WMB");
}



aber wenn ich starte ist da keine box mehr...
als were sie durchs level gefallen frown

was mache ich falsch

Re: brauche eine einfache Physic Box [Re: ratz] #416533
02/01/13 13:43
02/01/13 13:43
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
TUTS laugh

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <ackphysx.h>

///////////////////////////////

action test_box()
{
pXent_settype(me, PH_RIGID, PH_BOX);
pXent_setfriction(my, 100);
 pXent_setelasticity(my, 10);

}


function main()
{
   physX_open(); 
 
	level_load("physic.WMB");
}


Re: brauche eine einfache Physic Box [Re: ratz] #416534
02/01/13 13:44
02/01/13 13:44
Joined: Oct 2004
Posts: 897
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 897
Lgh
Dein level muss auch als physic registriert werden.

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <ackphysx.h>

///////////////////////////////

action test_box()
{
pXent_settype(me, PH_RIGID, PH_BOX);
}


function main()
{
   physX_open(); 
 
	level_load("physic.WMB");
        pXent_settype(level_ent,PH_STATIC,PH_POLY);	
}



Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: brauche eine einfache Physic Box [Re: rojart] #416536
02/01/13 13:56
02/01/13 13:56
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
@rojart:
Nicht mehr, ist in der aktuellen ackPhysX.h schon so drin, dass alles als static und polygon registriert wird


Visit my site: www.masterq32.de
Re: brauche eine einfache Physic Box [Re: MasterQ32] #416545
02/01/13 14:22
02/01/13 14:22
Joined: Oct 2004
Posts: 897
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 897
Lgh
Ah, ja stimmt hab es vergessen, dann muss am objekt liegen.
Versuche mit pX_setccd ( 1 ); pXent_setccdskeleton funktionen.
Sonst wäre es besser dein test level hier zu posten um zu sehen wo der fehler ist.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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