Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Edgar_Herrera, VoroneTZ, Akow), 973 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 4 of 9 1 2 3 4 5 6 7 8 9
Re: some a6 physics questions #15431
04/27/03 04:51
04/27/03 04:51
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
quote:
vector(var x,var y,var z) ... The vector returned has the same restrictions like a local vector: it can't be passed as vector parameter to other functions. It can be used as vector parameter for vector instructions, but only for one of the instruction's parameters.
...oh! only one parameter... it works now! the wheels are attached..

Re: some a6 physics questions #15432
04/27/03 05:02
04/27/03 05:02
Joined: Jun 2002
Posts: 473
Juff Offline
Senior Member
Juff  Offline
Senior Member

Joined: Jun 2002
Posts: 473
sorry for all of the questions, sorry I can't hekp you. I just need one more thing, I won't ask for anything else. Instead of the ball being removed after 5 seconds, how could I make it so that it is removed when you press the middle mouse button.

Re: some a6 physics questions #15433
04/27/03 05:10
04/27/03 05:10
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
just replace the sleep(5); with:

while(mouse_middle==0){wait(1);}

Re: some a6 physics questions #15434
04/28/03 07:54
04/28/03 07:54
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
 -
i have a car which can drive forwards and backwards now but if i try to rotate the front wheels to drive around curves they don't rotate properly anymore (see image). it looks like ph_wheel axis 2 isn't a child of axis 1...

Re: some a6 physics questions #15435
04/27/03 21:27
04/27/03 21:27

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hey Ventilator slightly off topic but did you have any trouble seting the shadow flag in A6.
For example:
action sphere
{

my.shadow=on;

ph_setgravity( earthgravity );
phent_settype(my, PH_RIGID, PH_SPHERE);
phent_setmass(my, 5, PH_SPHERE);
phent_setfriction(my, 70);
phent_setelasticity(my, 100, 5);
phent_setdamping(my, 20, 20 );

temp.x=cos(camera.pan)*cos(camera.tilt)*300000;
temp.y=sin(camera.pan)*cos(camera.tilt)*300000;
temp.z=sin(camera.tilt)*300000;
phent_addforcelocal(my,temp,nullvector);
------------------------------------------

I'm not getting any shadow for the sphere

And in adition While placing an entity in wed and using the shadow flag i'm not getting any shadow unles I lift the entity slightly of the ground

And the weirdest thing is if I use the wed from A5 And open the level in A6 and run it it's all fine

Re: some a6 physics questions #15436
04/27/03 21:39
04/27/03 21:39
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
yes, i also had this shadow problem! but only with the tyres of my car and i don't know why but it works now. [Smile] maybe because i added lod...

Re: some a6 physics questions #15437
04/27/03 21:57
04/27/03 21:57

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Thanks for a prompt reply.
Yeah it is kinda strange I'll have to ask one of the conitec guys on monday...

What did you have in mind by lod did you make it longer or shorter?

Re: some a6 physics questions #15438
04/28/03 07:17
04/28/03 07:17

A
Anonymous
Unregistered
Anonymous
Unregistered
A



ventilator:
At first: Great what you have done with the Physics Engine until now in this short time...

About your problem:
quote:
manual v6.00 -> PH_Wheel -> Parameter 4
... Use (-360, 360, 0) to remove all limits.

This you do! And perhaps this is the reason for your snapped wheel... because if you don't allow it to change its angle in this direction, the problem shouldn't appears !??
Because I haven't understand the usage with the angles yet (I wait for the german translation [Razz] ), I don't know what the right valuas are (/should be).

Greets,
Clemens

P.S. Upload your car-demo when it is done [Wink] [only a suggestion [Big Grin] ]... And all free source code is also appreciated!

EDIT:
Two other things about your Code:
1.)
<EDIT> DELETED! reason: stupid question/idea...
2.)
Do you use a motor, yet?
If "yes":
Where is the updated code [Razz] ?
If "no":
How do you give the car a force? By giving only the p_player a CENTRALFROCE ?

Re: some a6 physics questions #15439
04/28/03 08:00
04/28/03 08:00

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hmm... I think, I have written bullshit!?
After I looked the PH_Wheel picture of the manual again, I remarked that the second axis could't change the wheel in that way, like in your screenshot...:
Only the first axis could - if any (=wenn überhaupt) because meanwhile I'm not sure anymore if it has anything to do with the axis!!!

Re: some a6 physics questions #15440
04/28/03 08:45
04/28/03 08:45

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Boah Mann!
Was habe ich mir denn unten bei "1.)" schon wieder gedacht??
Du hast ja "MY.X" als Vector benutzt...!!!
Echt ey! Ich sollte jetzt ganz schnell ins Bett gehen bevor ich noch auf die Idee komme, anderen Leuten probieren zu helfen!
Sorry - nächstes Mal kommt was sinnvolles!

Gut' Nacht,
Clemens

P.S. War mir jetzt zu blöd und anstrengend, noch weiteres falsches Englisch mit zusätzlichem überflüssigem Inhalt zu verzapfen - daher jetzt auf Deutsch!

Page 4 of 9 1 2 3 4 5 6 7 8 9

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