Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
fall down ,passing of the game land #370156
05/11/11 11:05
05/11/11 11:05
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
hi guys ,

i made two entities with model editor and i imported them in WED ...

first is a small ball with physics and second is a land that player can move ball on it .

but when i test the game,i saw the ball can pass the land and fall down into the blue unlimited world in 3DGS ... grin

What is problem ?

Re: fall down ,passing of the game land [Re: Mafia_IR] #370163
05/11/11 11:32
05/11/11 11:32
Joined: Nov 2010
Posts: 125
Germany
chrisp1 Offline
Member
chrisp1  Offline
Member

Joined: Nov 2010
Posts: 125
Germany
maybe you have set the PASSABLE flag
Try: reset(yourentityname,PASSABLE);


---------------------------------------------------
My new project: www.sfc.de.to
My old project: www.littlesubmarine.de.to
My Youtubechannel: http://www.youtube.com/user/darkchrisp#p/a/u/0/5idMXmCDdmA
---------------------------------------------------
Re: fall down ,passing of the game land [Re: chrisp1] #370183
05/11/11 14:15
05/11/11 14:15
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
these is no difference when i used reset(OBJ name , ... ) . u can see my code here :

Code:
function main()
{
    video_mode = 8 ;
    video_screen = 1 ;
    fps_max = 240 ;
    
    physX_open();
    shadow_stencil = 3;
      level_load("Ball_physx.wmb");
      
      main_plane = ent_create("Plane.mdl",vector(0,0,0),main_plane_function) ;
      ball_physx = ent_create("ball.mdl",vector(0,0,30),ball_function) ;
      
      pXent_settype(ball_physx ,PH_RIGID  , PH_SPHERE  );
      pXent_setfriction(ball_physx,50);
      pXent_setdamping (ball_physx,10,10);
      pXent_setelasticity (ball_physx,5); 
      reset(ball_physx,PASSABLE);
      
      while(1)
      {
          pXent_addtorqueglobal (ball_physx, ball_force);    //!
          camera.z = ball_physx.z + 400 ;
          wait(1);
    }
    
}



Re: fall down ,passing of the game land [Re: Mafia_IR] #370186
05/11/11 14:34
05/11/11 14:34
Joined: Mar 2010
Posts: 75
YellowAfterlife Offline
Junior Member
YellowAfterlife  Offline
Junior Member

Joined: Mar 2010
Posts: 75
Try setting main plane type to (PH_STATIC, PH_POLY)


Unfortunately, I've not worked with 3dGS for a while now, but it was fun
Re: fall down ,passing of the game land [Re: YellowAfterlife] #370192
05/11/11 14:53
05/11/11 14:53
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
it worked! grin

i was added this line of code . ball can't pass the plane but now i cant move the plane with mouse ...
Code:
pXent_settype(main_plane ,PH_STATIC  , PH_POLY  );


and this my main plane function :
Code:
function main_plane_function ()
{
	while(1)
	{
		my.tilt -= mouse_force.y ;
		my.pan  += mouse_force.x ;
		
		wait(1);
	}
}



Last edited by Mafia_IR; 05/11/11 14:54.
Re: fall down ,passing of the game land [Re: Mafia_IR] #370193
05/11/11 14:59
05/11/11 14:59
Joined: Mar 2010
Posts: 75
YellowAfterlife Offline
Junior Member
YellowAfterlife  Offline
Junior Member

Joined: Mar 2010
Posts: 75
If you want to rotate plane with mouse, set type to (PH_RIGID, PH_CONVEX). And check the manual on pXent_type - there will be some more things about it.


Unfortunately, I've not worked with 3dGS for a while now, but it was fun
Re: fall down ,passing of the game land [Re: YellowAfterlife] #370213
05/11/11 17:13
05/11/11 17:13
Joined: Aug 2010
Posts: 131
Iran
Mafia_IR Offline OP
Member
Mafia_IR  Offline OP
Member

Joined: Aug 2010
Posts: 131
Iran
it's not depending on pXent_settype , i tested all parameter of this keyword but nothing happened . can anyone help me ?

Re: fall down ,passing of the game land [Re: Mafia_IR] #377790
07/16/11 11:00
07/16/11 11:00
Joined: Aug 2010
Posts: 26
J
JHA Offline
Newbie
JHA  Offline
Newbie
J

Joined: Aug 2010
Posts: 26

Have you played around with the parameters:

pX_setsteprate(60,8,NX_TIMESTEP_FIXED);
pX_setunit(1/40);
ph_fps_max_lock=100;
ph_check_distance=2;
pX_setccd(1);

and have you used pXent_setccdskeleton(ent,vector(0,0,0),1);


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