newton physics

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

newton physics

Post by VeneX »

I changed the size of the cube in the function

Code: Select all

NewtonCube *CGame::MakeCube(vector3df loc, vector3df veloc)
.
The size is now

Code: Select all

	// Create a box primitive. 38 is just an estimated value of the size of the model,
	float x = 4 * IrrToNewton;
	float y = 4 * IrrToNewton;
	float z = 8 * IrrToNewton;
	NewtonCollision* collision;
	collision = NewtonCreateBox(nWorld, x, y, z, NULL);
But the object will fall through the floor and wall more than 6 times when you throw it 10 times...
Is the model too small so he doesn't see the collision?
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

I doubt Newton would have that problem, but I have no idea what else it could be, providing you level geometry was fed in correctly. I suggest you post this on the Newton forum if your sure there's no mistake in any of your code.
VeneX
Posts: 228
Joined: Sun Nov 30, 2003 3:32 pm
Location: The Netherlands
Contact:

Post by VeneX »

The object is too small for the engine :?
Visit my website @ www.venex.be
Plethora project will be added to the site
AMD AthlonXP 2600+, 512MB DDR, Radeon M10 (mobile 9600) PRO 64MB, WinXP
Manakel

Post by Manakel »

Did you updated Ixx Iyy Izz factors according to your new size?
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

I read that thread on the Newton forum, and I must admit I'm surprised that the engine cares about size. Relative size maybe, but assuming that the size of the triangles in whatever your using for world geometry aren't too huge compared to the object, I find it dissapointing that Newton has a problem with the size.
Post Reply