2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: 2.5D physics
[Re: 3run]
#345441
10/26/10 10:46
10/26/10 10:46
|
Joined: Oct 2007
Posts: 5,210 Ä°stanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
|
trust TheLiam, he makes a 2.5d physics game, gravix.
Last edited by Quadraxas; 10/26/10 10:51.
3333333333
|
|
|
Re: 2.5D physics
[Re: Quad]
#345444
10/26/10 10:54
10/26/10 10:54
|
Joined: Jul 2009
Posts: 1,198 Berlin, Germany
Liamissimo
Serious User
|
Serious User
Joined: Jul 2009
Posts: 1,198
Berlin, Germany
|
my.x = 1354;
if(mouse_left == 1 && levelnr >= 40 && bomb == 0)
{
bomb = 1;
ent_create("bombe_gravis.mdl",ball.x,bombefunc);
}
if(key_a || Xbox_Joystick_Raw_X <= -150)
{
phent_addcentralforce(ball,vector(0,1750,0));
}
if(key_d || Xbox_Joystick_Raw_X >= 150)
{
phent_addcentralforce(ball,vector(0,-1750,0));
}
if(key_w || Xbox_Joystick_Raw_Y <= -150)
{
phent_addcentralforce(ball,vector(0,0,1750));
}
if(key_s || Xbox_Joystick_Raw_Y >= 150)
{
phent_addcentralforce(ball,vector(0,0,-1750));
}
This is my movement code, I added this my.x = 1354; and it works smooth and perfect
"Ich weiss nicht genau, was Sie vorhaben, aber Sie können keine Triggerzonen durch Ihr Level kullern lassen." -JCL, 2011
|
|
|
Re: 2.5D physics
[Re: 3run]
#345452
10/26/10 13:27
10/26/10 13:27
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
Thank you Helghast. But I'm still using ODE at the moment. Because, to my mind, physX still isn't stable in GS. As well, as A8. How do I make this with ODE? To be completely honest with you, this is absolute BS I have been working lately on a PhysX involved project, and from the start they seem and feel more stable then anything i've ever done with ODE. Anyway, if you are resetting a physics object every frame using my.x = 0, make sure to disable and enable the physics object as well every frame using phent_enable. regards,
|
|
|
Re: 2.5D physics
[Re: 3run]
#345461
10/26/10 15:37
10/26/10 15:37
|
Joined: Jan 2004
Posts: 3,023 The Netherlands
Helghast
Expert
|
Expert
Joined: Jan 2004
Posts: 3,023
The Netherlands
|
To be honest, I've tried physX only when the first beta version of A8 came out. Didn't try it with new version yet)) Is there any other way than locking models X? Yes, like I said in my previous post: Anyway, if you are resetting a physics object every frame using my.x = 0, make sure to disable and enable the physics object as well every frame using phent_enable.
obviously, instead of my.x, you can also do my.y here... regards,
|
|
|
|