Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 23 of 41 1 2 21 22 23 24 25 40 41
Re: Newton 2 wrapper [Re: Quad] #265647
05/13/09 14:01
05/13/09 14:01
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP

Serious User
VeT  Offline OP

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
yep, rope and Power Mouse smile

Quadraxas is absloutely right: Newton use floats, not vars


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Newton 2 wrapper [Re: VeT] #265683
05/13/09 16:39
05/13/09 16:39
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
ok, so ill try the dfloat my_pos[3] example

I#ll report it it worked :)(oh and where is the example? its not in your current download o.O?

GREETS
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Newton 2 wrapper [Re: Rackscha] #265688
05/13/09 16:51
05/13/09 16:51
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP

Serious User
VeT  Offline OP

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
Level 16

Damned, tomorrow i'd release new version of Newton for A7.7.. i launched old Newton and got bugs with matrixes, that Quadraxas mentioned on the prevoius page


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Newton 2 wrapper [Re: VeT] #265694
05/13/09 17:21
05/13/09 17:21
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Ah thats a good news, because i have still a problem.
It worked, but not the way i expected:
In my first picture you can see the bone in Med. Its offset on the z axis.
In the second pic you can see the same bone in red. The circle is the center and the square the visible box. Want i want, is that the box rotates about its center but it doesnt work. When rotating around the y-axis, you can see what happens(the green thing). the circle is the point the box is rotating around. the line shows the path(i have drawn the wrong axis wink ).
And the square is the bone. That shouldnt bee. It seems that i cant change the point of the angular position. And when i trie to rotate around the x axis, the rotation point is somewhere near NULLVECTOR(weird).

Code:
dFloat ang_point[3];
   dFloat ang_rotation[3];
vec_for_bone(temp.x,my,"Bone9");
ent=ent_create("box_a.mdl",vector(temp.x,temp.y,temp.z+10),bone);
bone_t = newton_addentity(ent,0,NEWTON_BOX,onforceandtorque);
you=ent_create("box_a.mdl",vector(temp.x,temp.y,temp.z),bone);
	ragdoll_ent=newton_addentity(you,70,NEWTON_BOX,onforceandtorque);
ang_point[0] = temp.x;
ang_point[1] = temp.y;
ang_point[2] = temp.z;
ang_rotation[0] = 0;
ang_rotation[1] = 1;
ang_rotation[2] = 0;	NewtonConstraintCreateHinge(nworld,ang_point[3],ang_rotation,bone_t,ragdoll_ent);



Greets Rackscha
and Good luck VeT wink

Attached Files pic_a.jpgpic_c.jpg
Last edited by Rackscha; 05/13/09 17:23.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Newton 2 wrapper [Re: Rackscha] #265703
05/13/09 18:33
05/13/09 18:33
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
multiply coordinates when you are passing them to newton functions

*QUANTTOMETER

and when readinf from newton use METERTOQUANT

Last edited by Quadraxas; 05/13/09 18:34.

3333333333
Re: Newton 2 wrapper [Re: Quad] #265733
05/13/09 20:12
05/13/09 20:12
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
OMG, what an empic fail laugh
Ok i'll try it


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Newton 2 wrapper [Re: Rackscha] #265737
05/13/09 20:14
05/13/09 20:14
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
YES EMPIC FAIL(for me v.v)
It didnt change anything.
Oh and you should know: passing 0 for every coordinate as angle vector doesnt change anything to, and when using the x instead of the y axis to rotate around the point changes again. completely weird.
Give me an example if it works for you


EDIT: sorry for my angry words, but iam completely STRESSED(with school, 12 clath of gym)

Last edited by Rackscha; 05/13/09 22:00.

MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Newton 2 wrapper [Re: Rackscha] #269888
06/05/09 05:24
06/05/09 05:24
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
is this still alive? smile

Last edited by cerberi_croman; 06/05/09 05:24.


Ubi bene, ibi Patria.
Re: Newton 2 wrapper [Re: croman] #270702
06/09/09 12:28
06/09/09 12:28
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline OP

Serious User
VeT  Offline OP

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
yes smile
i'm finishing my diploma project and i'd be ressurect laugh


1st prize: Lite-C and Newton 2.17 by Vasilenko Vitaliy

Newton2 videos: http://tinyurl.com/NewtonVideos
LiteC+Newton2 discussion: http://tinyurl.com/NewtonWrapperDiscussion
Latest LiteC+Newton2 version(v23, from 29.10.2009): http://depositfiles.com/files/ae1l0tpro
Re: Newton 2 wrapper [Re: VeT] #271732
06/14/09 19:07
06/14/09 19:07

F
Fear411
Unregistered
Fear411
Unregistered
F



how can i use the Gamestudio savegames with newton? The positions of the Objects are not saved.

Is there a function like:
NewtonSetToPosition.

Because then i could save all positions of physic entities in a text file and when the game is loaded i can set all objects to their positions

Last edited by Fear411; 06/14/09 19:12.
Page 23 of 41 1 2 21 22 23 24 25 40 41

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