Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (dr_panther, Quad, AndrewAMD, 7th_zorro), 945 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
need physic #65859
03/08/06 20:01
03/08/06 20:01
Joined: Feb 2006
Posts: 44
Norway
M
MagZu Offline OP
Newbie
MagZu  Offline OP
Newbie
M

Joined: Feb 2006
Posts: 44
Norway
i need some physics
like so that the wall can get smashed and crates so i can place crates up on each others and then get them to collaps
that with the wall is that i want is like a astroide or something cannon or what i am going to have let us say the cannon so that the cannon ball hits the wall and the wall collaps
can someone help me with that????
ps.if you have some good physic post it here

Re: need physic [Re: MagZu] #65860
03/08/06 21:21
03/08/06 21:21
Joined: Feb 2006
Posts: 44
Norway
M
MagZu Offline OP
Newbie
MagZu  Offline OP
Newbie
M

Joined: Feb 2006
Posts: 44
Norway
ow comeone physic script at least a crate physic

Re: need physic [Re: MagZu] #65861
03/08/06 23:28
03/08/06 23:28
Joined: Feb 2006
Posts: 44
Norway
M
MagZu Offline OP
Newbie
MagZu  Offline OP
Newbie
M

Joined: Feb 2006
Posts: 44
Norway
Someone?

Re: need physic [Re: MagZu] #65862
03/09/06 02:14
03/09/06 02:14
Joined: Feb 2006
Posts: 76
Mi
H
Havoc22 Offline
Junior Member
Havoc22  Offline
Junior Member
H

Joined: Feb 2006
Posts: 76
Mi
I think your best bet is to look in the manual and read up on the physics section. Maybe download a few open source physics examples.

Re: need physic [Re: Havoc22] #65863
03/09/06 14:03
03/09/06 14:03
Joined: Feb 2006
Posts: 44
Norway
M
MagZu Offline OP
Newbie
MagZu  Offline OP
Newbie
M

Joined: Feb 2006
Posts: 44
Norway
and where do i get physics just for let say a crate

Re: need physic [Re: MagZu] #65864
03/09/06 14:52
03/09/06 14:52

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hi!

Here's the beginning of your physics:
Read all about the "phent_..."-methods in your handbook.

Code:

entity* crate;

function main {

level_load("your level with a simple hollow-cube around the origin");
wait(3);

crate=ent_create("crate.mdl",nullvector,null);
phent_settype( crate, PH_RIGID, PH_BOX );
phent_setmass ( create, 10, PH_BOX );
phent_setfriction ( crate, 1 );
phent_setelasticity( crate , 2, 2);
ph_setgravity ( vector(0,0,-368) );

while(1){
wait(1);
}
}



Re: need physic [Re: ] #65865
03/09/06 15:10
03/09/06 15:10
Joined: Feb 2006
Posts: 44
Norway
M
MagZu Offline OP
Newbie
MagZu  Offline OP
Newbie
M

Joined: Feb 2006
Posts: 44
Norway
i get error
< entity*^crate;>
crate_physic.wdl 1:1 Error(135): Double definition crate pointer function

<crate=ent_create(@4.nullvector.null)>
crate_physic.wdl 8:0 Error(73): Read only crate

<phent_setmass(create.10.PH_box)>
crate_physic.wdl 10:0 Error(63): Parameter unknown create

how do i slove that

Re: need physic [Re: MagZu] #65866
03/09/06 15:13
03/09/06 15:13
Joined: Feb 2006
Posts: 44
Norway
M
MagZu Offline OP
Newbie
MagZu  Offline OP
Newbie
M

Joined: Feb 2006
Posts: 44
Norway
does the crates get like in this demo:
http://newtondynamics.com/downloads/NGDdemo.zip

Re: need physic [Re: MagZu] #65867
03/09/06 15:23
03/09/06 15:23

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hi!

First you have to learn C-Script to understand the errors - so please try some simpler things first...

- the first error means that you somewhere in your code already defined an object/function with the name "crate".

- the second error depends on the other "crate"-object (it's readonly).

- the last error is a spelling-mistake - try "crate" not "create" - sorry - wrote the code without editor/test.

mercuryus

ps: the link you posted is the NEWTON physics-engine. I've heard it's better but I don't know it...

Re: need physic [Re: ] #65868
03/09/06 15:50
03/09/06 15:50
Joined: Feb 2006
Posts: 44
Norway
M
MagZu Offline OP
Newbie
MagZu  Offline OP
Newbie
M

Joined: Feb 2006
Posts: 44
Norway
kk i can try that:)

Page 1 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