Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Grant, AndrewAMD), 911 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Carlevel template #280058
07/20/09 20:54
07/20/09 20:54
Joined: Jul 2009
Posts: 80
Area 51
F
fangedscorpion Offline OP
Junior Member
fangedscorpion  Offline OP
Junior Member
F

Joined: Jul 2009
Posts: 80
Area 51
I do not have the carlevel template that people are talking about in their work folders where lite-c is installed. Does anyone have a link to this file?


"Pow! You are dead! Not big suprise!" -Heavy
Re: Carlevel template [Re: fangedscorpion] #280078
07/20/09 22:09
07/20/09 22:09
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
I guess you need Gamestudio Extra or higher.

Re: Carlevel template [Re: Cowabanga] #280142
07/21/09 03:54
07/21/09 03:54
Joined: Jul 2009
Posts: 80
Area 51
F
fangedscorpion Offline OP
Junior Member
fangedscorpion  Offline OP
Junior Member
F

Joined: Jul 2009
Posts: 80
Area 51
Do you have any other advice to move my car realistically?
I would prefer to use physics, but I can not seem to get that to work!


"Pow! You are dead! Not big suprise!" -Heavy
Re: Carlevel template [Re: fangedscorpion] #280193
07/21/09 12:37
07/21/09 12:37
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
The manual, my friend. The manual.

Re: Carlevel template [Re: Cowabanga] #280217
07/21/09 14:06
07/21/09 14:06
Joined: Jul 2009
Posts: 80
Area 51
F
fangedscorpion Offline OP
Junior Member
fangedscorpion  Offline OP
Junior Member
F

Joined: Jul 2009
Posts: 80
Area 51
I looked in the manual and I used all the properties,but I want to move the entity using the arrow keys. here is my code:

ph_setgravity(vector(0,0,-500));

phent_settype(moke1,PH_RIGID,PH_BOX);
phent_setmass(moke1,1,PH_BOX);
phent_setfriction(moke1,90);
phent_setdamping(moke1, 40, 40);
phent_setelasticity(moke1,75,20);

moke1.pan = 25 * time_step* (key_cul - key_cur);
moke_sp.x = moke1.pan + 25 * time_step* (key_cul - key_cur);
moke_sp.y = 50 * (key_cud - key_cuu);
moke_sp.z = 0;
//phent_addtorqueglobal(moke1, moke_sp); phent_addvelcentral ( moke1, moke_sp );

When I do this, the car stays still and freaks out!
Any help would be great!


"Pow! You are dead! Not big suprise!" -Heavy
Re: Carlevel template [Re: fangedscorpion] #280750
07/24/09 03:18
07/24/09 03:18
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline
Member
Jaeger  Offline
Member
J

Joined: May 2009
Posts: 258
Chicago
You can't directly move objects in tandem with physics. You use one or the other. It also looks like you haven't set up any constraints for wheels/chassis/etc? If you try to use things like c_move or my.pan with physics at the same time, you can actually crash your computer. I've done it before.

I'm also interested in how to set up constraints for vehicles physics though. No good examples exist, and the manual is pretty vague.


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