Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (ozgur, EternallyCurious, howardR, 1 invisible), 623 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 6 of 16 1 2 4 5 6 7 8 15 16
Re: newton [Re: VeT] #113091
10/18/07 21:47
10/18/07 21:47
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
heh...

it write
"Open the file and find the function AddCharacter this function creates a rigid body with a compound collision geometry."

..but there is no any uncommented functions AddCharacter nowhere... looking like unlucky day...


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 [Re: VeT] #113092
10/19/07 13:07
10/19/07 13:07
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
can you give the general idea of the "character movement"?
because, as i see, there are a lot of differences between tutorial document and example


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 [Re: VeT] #113093
10/19/07 13:08
10/19/07 13:08
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
you could search the newton forum a bit. i think there are lots of tips about character movement.

Re: newton [Re: ventilator] #113094
10/19/07 18:03
10/19/07 18:03
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
if enybody would have ideas, wellcome:
http://newtondynamics.com/forum/viewtopic.php?p=27198


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 [Re: VeT] #113095
10/21/07 21:03
10/21/07 21:03
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
function player_move()
{
MH.moveFB = (key_pressed(17) - key_pressed(31))*5;
MH.moveLR = (key_pressed(30) - key_pressed(32))*3;
MH.mouseLR = mouse_force.x * 5 * time_step;
MH.mouseUD = mouse_force.y * 5 * time_step;

NewtonBodySetVelocity(MH.NewtonChar, vectorf(vector(MH.moveFB, MH.moveLR, -1)));

****


first time entity bounces, second time it falls down through floor... what happend?


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 [Re: VeT] #113096
10/21/07 21:14
10/21/07 21:14
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
i think if you use setvelocity every frame then you can "press" physics entities through static geometry. better apply forces instead.

setvelocity should only be used for one frame. if you want to shoot an entity in a certain direction for example.

Re: newton [Re: ventilator] #113097
10/21/07 23:29
10/21/07 23:29
Joined: Apr 2004
Posts: 44
S
Stelynn Offline
Newbie
Stelynn  Offline
Newbie
S

Joined: Apr 2004
Posts: 44
I downloaded the newton example and tried to run the Lite_c main script but it fails to run because of a error in line 257 of Newton.c file. I changed the typedef struct as was stated in the post for Vertex but it still comes back as a syntax error on 257. I downloaded and am using the latest version of Lite_c. Can you tell me what i am doing wrong. The newton application that is compiled runs fine.

Re: newton [Re: Stelynn] #113098
10/22/07 10:45
10/22/07 10:45
Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
VeT Offline

Serious User
VeT  Offline

Serious User

Joined: Aug 2004
Posts: 1,345
Kyiv, Ukraine
and what is the better way of using forces?
simple NewtonBodyAddForce dont works...


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 [Re: VeT] #113099
10/22/07 10:51
10/22/07 10:51
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
stelynn, i think you use the old version of the scripts.
this demo comes with newer scripts and they should work:
http://www.coniserver.net/coni_users/web_users/pirvu/au/demo/zips/litecnewton.zip

NewtonBodyAddForce() only should be used in the forceandtorque callback.

Re: newton [Re: ventilator] #113100
10/23/07 06:39
10/23/07 06:39
Joined: Jan 2007
Posts: 295
Portugal
Sam_Be Offline
Member
Sam_Be  Offline
Member

Joined: Jan 2007
Posts: 295
Portugal
hi cold somebody please write here the final code please?? thx


GS-Extra Looking for a scripter Suche einen scripter. Estou a procura de um "Scripter".
Page 6 of 16 1 2 4 5 6 7 8 15 16

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