Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A7 to A8 #393249
02/01/12 18:00
02/01/12 18:00
Joined: Jan 2012
Posts: 16
R
rcth Offline OP
Newbie
rcth  Offline OP
Newbie
R

Joined: Jan 2012
Posts: 16
Hi,

I have an A7 physics code for lite-c. Can anyone change this to A8. Especialy the motor won't work.

/*entiteit definieren*/
ENTITY* molen;

action molen_move()
{
molen= my;
var MolenID;
var anchor[3];
set(my,PASSABLE); //in c-script my.PASSABLE = on;
phent_settype(my,PH_RIGID,PH_SPHERE);
phent_setmass(my,600,PH_SPHERE);
phent_setgroup(my,2);
vec_set(anchor,vector(0,0,1));//draairichting bepalen volgens x,y,z as nu dus op de z
vec_rotate(anchor,vector(0,0,0));/*hier kan je pan en tilt en roll veranderen en dan verandert ie de pivot points*/
MolenID = phcon_add(PH_HINGE,my,NULL);//hier koppel je de delen aan elkaar met een scharnier
phcon_setparams1(MolenID,my.x,anchor,nullvector);
phcon_setparams2(MolenID,vector(-360,360,0),nullvector,nullvector);
phent_setdamping(my,100,100);
while(1)
{
phcon_setmotor(MolenID,vector(rotate_speed*-1,900000,0),nullvector,nullvector);
wait(1);
}
}

Re: A7 to A8 [Re: rcth] #393498
02/04/12 08:20
02/04/12 08:20
Joined: Jan 2012
Posts: 16
R
rcth Offline OP
Newbie
rcth  Offline OP
Newbie
R

Joined: Jan 2012
Posts: 16
Nobody?

Re: A7 to A8 [Re: rcth] #393520
02/04/12 15:39
02/04/12 15:39
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
No. Nobody will do the work for you. Try it for yourself and see how far you get. Once you come to a certain problem and don't know how to solve it anybody here in the forum will try to help you.


Always learn from history, to be sure you make the same mistakes again...

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

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