Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Lite-C Physic and vehicles [Re: Alessandro] #176079
01/25/08 09:56
01/25/08 09:56
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
I give you 5 starts
Can you write your name in the source code of the wiki?
Thanks by the source code

Note: Also I don't like the lift sound

Last edited by Felixsg; 01/25/08 09:58.
Re: Lite-C Physic and vehicles [Re: Felixsg] #176080
01/25/08 20:47
01/25/08 20:47
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Hello, thank you for your 5 stars!!!
As you suggested me, I wrote my name in the code.

If you have any questions, don't hesitate to ask me anything!

Re: Lite-C Physic and vehicles [Re: Alessandro] #176081
02/03/08 11:18
02/03/08 11:18
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
UPDATE:

== Traction: Rear or 4WD! ==

Next step is creating a car with a rear traction, front traction, or 4WD. Well, it is very easy.
In the source code "physics_car.c" look for "// max. reverse is 1/4 of forward speed" (without apex!). You will find the following code:

// max. reverse is 1/4 of forward speed
vehicle[myID].targetSpeed= clamp(vehicle[myID].targetSpeed, -vehicle[myID].properties.maxAngSpeed*0.25, vehicle[myID].properties.maxAngSpeed);
phcon_setmotor(vehicle[myID].wheelRL, nullvector, vector(vehicle[myID].targetSpeed, locTorque,0), nullvector);
phcon_setmotor(vehicle[myID].wheelRR, nullvector, vector(vehicle[myID].targetSpeed, locTorque,0), nullvector);

If you want to add 4WD system, add the following lines:

if(activate4Tires == 1) {
//FRONT
phcon_setmotor(vehicle[myID].wheelFL, nullvector, vector(vehicle[myID].targetSpeed, locTorque,0), nullvector);
phcon_setmotor(vehicle[myID].wheelFR, nullvector, vector(vehicle[myID].targetSpeed, locTorque,0), nullvector);
}

In this way you can use the variable "activate4Tires" to insert/deactivate 4WD system!
It's great!

Re: Lite-C Physic and vehicles [Re: Alessandro] #176082
02/03/08 20:27
02/03/08 20:27
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
thanks again

Re: Lite-C Physic and vehicles [Re: Felixsg] #176083
02/23/08 23:34
02/23/08 23:34

A
Anonymous
Unregistered
Anonymous
Unregistered
A



This is great it just what I was looking for now I have to get the mod to remove my post. IS there a way to add a tank and 3 wheel vehicals?


Thanks
Malice

Last edited by Malice; 02/23/08 23:59.
Re: Lite-C Physic and vehicles [Re: ] #176084
02/25/08 21:14
02/25/08 21:14
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
No Malice, I work no more on this project.
Furthermore my job was based on the original 3d physic code inside A7 self.

I'm sorry again.

Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

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