Jump to content
  • Advertisement
Sign in to follow this  
Todilo

Tokamak colission

This topic is 4491 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im trying to use a .x file as a static floor for my game.
		Phys_Map = Phys_Simulator->CreateRigidBody();

		neGeometry *Geometry = Phys_Map->AddGeometry();

		
		//Compute bounding box size from mesh
		D3DXVECTOR3 min, max;
		BYTE* v = 0;
		MapMesh->LockVertexBuffer(0, (void**)&v);
	 	D3DXComputeBoundingBox((D3DXVECTOR3*)v, MapMesh->GetNumVertices(), D3DXGetFVFVertexSize(MapMesh->GetFVF()), &min, &max);
		MapMesh->UnlockVertexBuffer();

		neV3 SizeOfMap;
		SizeOfMap.Set( max.x - min.x, max.y - min.y, max.z - min.z );
		Geometry->SetBoxSize(SizeOfMap);

		
		neV3 Position;
		Position.Set( 0.0f, -2.0f, 0.0f );
		Phys_Map->SetPos( Position );
		Phys_Map->UpdateBoundingInfo();

But it is still effected by a downpulling force, probably from the box and cylinder standing on it. How can I make it totally static, and only react as a wall, object should bounce on it by it should not more.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!