Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TraderTom, Akow), 1,388 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 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 | 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