Gamestudio Links
Zorro Links
Newest Posts
nba2king Latest Roster Update Breakdown
by joenxxx. 10/14/25 06:06
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 9,184 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 5 1 2 3 4 5
Re: drehendes zahnrad ? [Re: 3run] #420368
03/24/13 14:47
03/24/13 14:47
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
Code:
Wrong PhysX type: level or Poly mest be PH_STATIC



no collision frown

Re: drehendes zahnrad ? [Re: 3run] #420369
03/24/13 14:50
03/24/13 14:50
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Jaja static kann das nicht..
Musst PH_RIGID und PH_CONVEX nehmen!
Und benutze hinges damit die zahräder nicht einfach runterfallen

Re: drehendes zahnrad ? [Re: Ch40zzC0d3r] #420370
03/24/13 14:56
03/24/13 14:56
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
ratz@ you need to register object as a PH_RIGID, then make it sleep via pXent_setsleep.
And then, add a hinge that you need to it (please read the manual for hinge information).
And at the end, if you'll need to rotate it, add angular forces via pXent_setangvelocity!

Edit: don't try to use PH_POLY for PH_RIGID, it will work only with static geometry! Use CONVEX instead!

Last edited by 3run; 03/24/13 15:03.

Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: drehendes zahnrad ? [Re: 3run] #420373
03/24/13 16:03
03/24/13 16:03
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
-.-

okey, ich hab jetzt alles versucht, aber irgendwie klappt das alles nicht

die räder flippen rum

ich weis nicht wann ich: physX_setsleep(me,1) und wann 0 benutzen soll

was hat das "Hinge" damit zutuhn ? (no manuel)

warum soll ich denn jetzt pXent_setangvelocity statt pXent_rotate
benutzen ?

braucht das easy_wheel auch eine setseep function ?
braucht das easy_wheel auch eine kinimatic ?

hier mein ganzer code
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include <ackphysX.h>
///////////////////////////////
  
function main()
{
 physX_open(); 
 level_load("room.WMB");
}

action easy_wheel()
{
 c_setminmax(me);
 //pXent_setbodyflag(me,NX_BF_KINEMATIC,1);
 
 pXent_settype(me,PH_RIGID,PH_CONVEX);
 
 //pXcon_add ( PH_HINGE, chain2, chain1, 0 );  
  
 //pXent_setsleep(me,1); 
 //pXent_setsleep(me,0);  
}

action force_wheel()
{
 c_setminmax(me);
 
 pXent_setbodyflag(me,NX_BF_KINEMATIC,1);
 
 pXent_settype(me, PH_RIGID,PH_CONVEX);
 
 //pXent_setsleep(me,0);

 //pXent_setsleep(me,0);
  
 ANGLE angle_me;
 
 while(1)
 {
  if (key_space == 1) 
  {
   angle_me.pan +=  2* time_step;  	 
   pXent_rotate(me,  nullvector, angle_me);   

   //pXent_setangvelocity(me, angle_me); 
   
   //pXent_setangvelocity(me, vector(0,0,1)); 
   
  }
 wait(1);
 }
}



kann mir mal jemand helfen ? tongue

Re: drehendes zahnrad ? [Re: ratz] #420376
03/24/13 17:34
03/24/13 17:34
Joined: Apr 2005
Posts: 4,506
Germany
F
fogman Offline
Expert
fogman  Offline
Expert
F

Joined: Apr 2005
Posts: 4,506
Germany
Kannst Du die Zahnräder hochladen? Dann könnten wir es mal selbst testen.


no science involved
Re: drehendes zahnrad ? [Re: fogman] #420383
03/24/13 21:46
03/24/13 21:46
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
wheel.mdl

es ist nur ein zylinder mit 20 Edges wo ich mit Extrude
jeden 2ten rausgemacht habe

Last edited by ratz; 03/24/13 21:48.
Re: drehendes zahnrad ? [Re: ratz] #420384
03/24/13 22:07
03/24/13 22:07
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Das wird nicht (EDIT: ohne weiteres) funktionieren, da Zahnräder nicht konvex sind.

Last edited by Superku; 03/24/13 22:08.

"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: drehendes zahnrad ? [Re: Superku] #420385
03/24/13 22:12
03/24/13 22:12
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
was heist das? "da Zahnräder nicht konvex sind"

Re: drehendes zahnrad ? [Re: ratz] #420388
03/24/13 22:59
03/24/13 22:59
Joined: May 2009
Posts: 5,377
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,377
Caucasus
I wonder what you are guys talking about.. but maybe this might help:
Quote:
The mesh for a PH_CONVEX hull can be concave - the hull is then automatically converted to convexity by filling gaps and dips in the mesh.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: drehendes zahnrad ? [Re: 3run] #420389
03/25/13 00:59
03/25/13 00:59
Joined: Oct 2008
Posts: 341
R
ratz Offline OP
Senior Member
ratz  Offline OP
Senior Member
R

Joined: Oct 2008
Posts: 341
can you help me or can you give me a code ?

Page 2 of 5 1 2 3 4 5

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