1 registered members (AndrewAMD),
1,135
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Intense X Copper + own physics
#270446
06/08/09 11:35
06/08/09 11:35
|
Joined: Jul 2008
Posts: 191
MDMDFSS
OP
Member
|
OP
Member
Joined: Jul 2008
Posts: 191
|
Why does that don`t work? :
______________________________________________________________________________ #include <IntenseX.h>//I know this is not the problem
ENTITY* eBall;
void main() { video_mode = 10; video_screen = 1; shadow_stencil = 3;
ENTITY* sky = ent_createlayer("skycube+6.dds", SKY | CUBE | SHOW, 0); sky.z = 30; }
action rock() { set(my,POLYGON);//I know this is not the problem set(eBall,SHADOW); phent_settype(eBall,PH_RIGID,PH_BOX); phent_setmass(eBall,50,PH_BOX); phent_setfriction(eBall,48); phent_setelasticity(eBall,15,10); phent_setdamping(eBall,20,20); ph_setgravity(vector(0,0,-600)); }
Without action rock() and ENTITY* eBall; works evrything fine.
But wenn I open The level, it gives me for every model that I gave the action (action rock) an error:
//crash with rock!//
What is wrong???
Last edited by MDMDFSS; 06/08/09 11:46.
|
|
|
Re: Intense X Copper + own physics
[Re: alibaba]
#270496
06/08/09 14:31
06/08/09 14:31
|
Joined: Jul 2008
Posts: 191
MDMDFSS
OP
Member
|
OP
Member
Joined: Jul 2008
Posts: 191
|
now it works!
Thank you man.
Last edited by MDMDFSS; 06/08/09 14:32.
|
|
|
Re: Intense X Copper + own physics
[Re: MDMDFSS]
#270695
06/09/09 11:55
06/09/09 11:55
|
Joined: Jul 2008
Posts: 191
MDMDFSS
OP
Member
|
OP
Member
Joined: Jul 2008
Posts: 191
|
But I still have another problem.
Wenn I shoot or hit a stone nothing happens, I think that is because the bullets from Intense X are passable (I don`t know wy), but how can I still shoot my physicobjeckts so thaz they fly all over the place???
here is my main code (physicobjeckts):
___________________________________________________________________________________________________________________
#include <IntenseX.h>
ENTITY* eBall;
void main() { video_mode = 10; video_screen = 1; shadow_stencil = 3;
ENTITY* sky = ent_createlayer("skycube+6.dds", SKY | CUBE | SHOW, 0); sky.z = 30; } //What can I add to rock??? action rock() { eBall = me; my.emask |= ENABLE_SCAN; my.emask |= ENABLE_BLOCK; set(my,POLYGON); set(eBall,SHADOW); phent_settype(eBall,PH_RIGID,PH_BOX); phent_setmass(eBall,50,PH_BOX); phent_setfriction(eBall,48); phent_setelasticity(eBall,15,10); phent_setdamping(eBall,20,20); ph_setgravity(vector(0,0,-600)); }
action stone() { set(my,POLYGON); }
Last edited by MDMDFSS; 06/09/09 11:57.
|
|
|
Re: Intense X Copper + own physics
[Re: MDMDFSS]
#271107
06/11/09 10:01
06/11/09 10:01
|
Joined: Jul 2008
Posts: 191
MDMDFSS
OP
Member
|
OP
Member
Joined: Jul 2008
Posts: 191
|
|
|
|
Re: Intense X Copper + own physics
[Re: the_mehmaster]
#271614
06/14/09 08:41
06/14/09 08:41
|
Joined: Jan 2004
Posts: 2,062 Hamburg, Germany
slacer
Expert
|
Expert
Joined: Jan 2004
Posts: 2,062
Hamburg, Germany
|
There is a new post about physics with Intense X in the Intense-I Forum showing how to do it. I had to search for event handling in Intense X source code to find they are using SHOOT events to detect the bullets... Intense Forum - physics thread -- slacer
|
|
|
|