Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, Quad, Ayumi, AndrewAMD), 797 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 33 of 41 1 2 31 32 33 34 35 40 41
Re: Newton 2 wrapper [Re: DarkSoul] #295107
10/22/09 23:50
10/22/09 23:50
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
2DarkSoul, You may see my example levels, wiki, headers and ChangeList.txt to find what you want laugh

I spend too mush time on Character controller, i even launched it one time, but now it crash again... Tomorrow i'll try to finish it.

Also, i added Newton Visual Studio's project to work with lite-c, so now i even can debug JointLibrary.dll in runtime. Hope that would help.


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] #296036
10/29/09 11:01
10/29/09 11: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
http://depositfiles.com/files/ae1l0tpro

v.23
- tested with Windows 7, build 7600. Found bug on Power Mouse map.
- Newton is updated to Newton 2.10
- JointLibrary is updated to Newton 2.10
- updated map10.c, physic object position changings demo, just press Space button

Firoball, i remember about your joints, but for now i must finish with character controller and car


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] #296435
10/31/09 19:32
10/31/09 19:32
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
thx for the update

the demo works oke (except power mouse)

now i got a strange problem
i got a very old game with newton (wich is old to)
no i try to include the new one

the problem is that my block is valing trowh a entity with the flag8 attached(didnt try geomtry)
if i use the old dll it doesnt

is there any explanation fore this?

flits


"empty"
Re: Newton 2 wrapper [Re: flits] #296513
11/01/09 14:02
11/01/09 14:02
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
Hi, flits
try to increase wait() time in actions

also, can you send me that level? some function changed, look at the Changelist.txt of Newton


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] #296540
11/01/09 16:31
11/01/09 16:31
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
i checked all of my code in the script that replaced your main.c opend old headers

it works again

thx anyway


"empty"
Re: Newton 2 wrapper [Re: flits] #296729
11/02/09 16:48
11/02/09 16:48
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
can I desactivate gravity in the newton engine? I need to desactivate it for creating a spaceship simulator


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Newton 2 wrapper [Re: painkiller] #296736
11/02/09 17:11
11/02/09 17:11
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
in the newton_main.c you will find void onforceandtorque(...

change the -9.8 to 0 that makes zero grav

hop this helps you


"empty"
Re: Newton 2 wrapper [Re: flits] #296743
11/02/09 17:56
11/02/09 17:56
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Or create your own onfordeandtorque function and then assign this one with newton_addentity.

Then you don't have to touch the wrapper code.

Re: Newton 2 wrapper [Re: FBL] #296752
11/02/09 18:41
11/02/09 18:41
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
ok, thanks. Where i can find a tutorial with the functions of the engine? like adding forces, torques, etc.


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: Newton 2 wrapper [Re: painkiller] #296754
11/02/09 19:02
11/02/09 19:02
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl

Code:
void my_onforceandtorque(NewtonBody* body)
{
	float mass, ixx, iyy, izz;
	NewtonBodyGetMassMatrix(body, &mass, &ixx, &iyy, &izz);
	NewtonBodySetForce(body, vectorf(0, 0, 0));
}

function player()
{
wait(2);
newton_addentity(me, (float)(9), NEWTON_BOX,my_onforceandtorque);

...



ore

Code:
function player()
{
wait(2);
newton_addentity(me, (float)(9), NEWTON_BOX,NULL);
...



didnt test it but should work


"empty"
Page 33 of 41 1 2 31 32 33 34 35 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