Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Quad, AndrewAMD), 722 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problem with physik and objekt move #348509
11/27/10 18:36
11/27/10 18:36
Joined: Dec 2009
Posts: 16
NovaTech2010 Offline OP
Newbie
NovaTech2010  Offline OP
Newbie

Joined: Dec 2009
Posts: 16
Hi ^^
I have a problem with my physik... .
I want to use physik on my playermodel, but if i press of a or d the model steer not with the pan-corner.

Here my Script:
------------------------------------------------------------
action playeraction()
{
player = me;
c_setminmax(me);
my.POLYGON = ON;
my.ENABLE_BLOCK = ON;
my.ENABLE_ENTITY = ON;
my.event = player_event;

player.lightrange = 75;
player.LIGHT = ON;
player.red = player_light; my.blue = player_light; my.green = player_light;

phent_settype (player, PH_RIGID, PH_BOX);
phent_setmass (player, 1, PH_POLY);
phent_setfriction (player, 80);
phent_setdamping (player, 70, 10);
phent_setelasticity (player, 20, 10);


my = target;
var cam_ang[3];
vec_diff(temp,nullvector,cam_dist_fern);
vec_to_angle(cam_ang,temp);
cam_ang.roll = 0;
cam_ang.tilt = -30;

while(1)
{
if(mouse_middle){player_speed = 2;}else{player_speed = 30;}

if(key_w){phent_addvelcentral(player,vector(player_speed * time_step, 0, 0));}
if(key_s){phent_addvelcentral(player,vector(-player_speed * time_step, 0, 0));}

vec_set(camera.x,cam_dist_fern);
vec_rotate(camera.x,player.pan);
vec_add(camera.x,player.x);
vec_set(camera.pan,cam_ang);
ang_add(camera.pan,player.pan);

if(key_a){player.pan += 50 * time_step;}
if(key_d){player.pan -= 50 * time_step;}

wait(1);
}
}

------------------------------------------------------------

So, i hope i make not circumstances.

Thanks

NovaTech2010

P.S.: Sry, my English is not very good ^^'

Re: Problem with physik and objekt move [Re: NovaTech2010] #348517
11/27/10 20:34
11/27/10 20:34
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
If you are trying to make FPS player movement, you better use C_MOVE instead of ODE physics. But in A8, there is a special function to make player movement with PhysX.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Problem with physik and objekt move [Re: 3run] #348518
11/27/10 20:38
11/27/10 20:38
Joined: Dec 2009
Posts: 16
NovaTech2010 Offline OP
Newbie
NovaTech2010  Offline OP
Newbie

Joined: Dec 2009
Posts: 16
So in A7 movements with physics are not possible?

Re: Problem with physik and objekt move [Re: NovaTech2010] #348521
11/27/10 21:16
11/27/10 21:16
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
For human movement I guess not.
But you can make really good looking movement with 'C_MOVE'.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: Problem with physik and objekt move [Re: 3run] #348532
11/27/10 22:18
11/27/10 22:18
Joined: Dec 2009
Posts: 16
NovaTech2010 Offline OP
Newbie
NovaTech2010  Offline OP
Newbie

Joined: Dec 2009
Posts: 16
Okay.
I produce so the grafitaty and the movements of figures with c_move.
I will keep come on.

I thank =)

Re: Problem with physik and objekt move [Re: NovaTech2010] #348964
12/02/10 11:07
12/02/10 11:07
Joined: Dec 2010
Posts: 13
T
tasha19 Offline
Newbie
tasha19  Offline
Newbie
T

Joined: Dec 2010
Posts: 13
hi. since you guys are talking about the movement of the object how do you suggest clicking a certain piece and moving it to the next block? for example, in chess. you click the object and putting it on a specific block?? we dont actually know where to start.. thanks!

Re: Problem with physik and objekt move [Re: tasha19] #348972
12/02/10 12:18
12/02/10 12:18
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Make a new thread for that please.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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