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
1 registered members (SBGuy), 652 guests, and 3 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 21 of 41 1 2 19 20 21 22 23 40 41
Re: Newton 2 wrapper [Re: HoopyDerFrood] #259289
04/05/09 10:15
04/05/09 10:15
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
Quote:
Now i'm working in 3 direction: DG car(times faster than usual raycast car), buoyancy(physic of the bodies that falls in the water) and character controler(we would be able to create person control physic).
Next steps would be different examples of cars(after basic DG car) and ragdoll (after character controler).

I really want to finish this as fast as possible, but i haven't enough time (and, sometimes, knowledges).


here it is smile i'd be very happy, if you would be able to help me with this


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] #259615
04/06/09 22:02
04/06/09 22:02

M
mercuryus
Unregistered
mercuryus
Unregistered
M



Hi VeT!

You definitly did a great job with this wrapper!
I like it very much!

Is there a way to adjust the elasticity/friction/.. per entity also?

mercuryus

Re: Newton 2 wrapper [Re: ] #259616
04/06/09 22:06
04/06/09 22:06
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
work with bodies, not entities... look at the one of the first levels, there is a demo of using friction.. elasticy changes in the same way smile


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] #262272
04/22/09 20:15
04/22/09 20:15
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
I heard from peoples, that sometimes manual doesnt work... Here is second version: Source, v2


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] #263863
05/02/09 18:27
05/02/09 18:27
Joined: Sep 2004
Posts: 178
J
jweb Offline
Member
jweb  Offline
Member
J

Joined: Sep 2004
Posts: 178
Greate Work!!!
someone have a working CAR DEMO with WMP? What is the FPS Rate with Newton ?

THX

Re: Newton 2 wrapper [Re: jweb] #263877
05/02/09 20:05
05/02/09 20:05
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
fps is very good: i got about 200 with 200 entities

wait a little, i'm finishing my work with car wink


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] #263878
05/02/09 20:26
05/02/09 20:26
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
maby you can make a var to change the gravety


now i did it like this
Code:
void onforceandtorque(NewtonBody* body)
{
	float mass, ixx, iyy, izz;
	NewtonBodyGetMassMatrix(body, &mass, &ixx, &iyy, &izz);
	ENTITY *entity = (ENTITY*)NewtonBodyGetUserData(body);
	NewtonBodySetForce(body, vectorf(0,0,gravity_z * mass));
}


overal i cant seem to find any bugs accept that i dont understand the joints parts sometimes

thx flits


"empty"
Re: Newton 2 wrapper [Re: flits] #263905
05/03/09 01:26
05/03/09 01:26
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, there are almost no documentation, it made my work harder...

about your code: why you use
Code:
ENTITY *entity = (ENTITY*)NewtonBodyGetUserData(body);

?

Seems that you dont need entity in this function at all


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] #263967
05/03/09 14:42
05/03/09 14:42
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
i modifed it inside the forum
i dont seem to able to add foce inside a function so i use skills tat add the force inside the loop onforceandtorque en therefore i need the entity pointer


"empty"
Re: Newton 2 wrapper [Re: flits] #264019
05/03/09 20:06
05/03/09 20:06
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://www.newtondynamics.com/wiki/index.php5?title=NewtonBodyAddForce
Quote:

NewtonBodyAddForce
void NewtonBodyAddForce( const NewtonBody* bodyPtr, const dFloat* forcePtr)
Usage

Add the net force applied to a rigid body.
Parameters
const NewtonBody *bodyPtr - pointer to the body to be destroyed.
const dFloat *forcePtr - pointer to an array of 3 floats containing the net force to be applied to the body.

Return
Nothing.

Remarks
This function is only effective when called from NewtonApplyForceAndTorque callback


last string wink


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
Page 21 of 41 1 2 19 20 21 22 23 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