All pastes #29319 Raw Edit

Something

public text v1 · immutable
#29319 ·published 2005-11-19 19:28 UTC
rendered paste body

		// Create a static box for a ground plane.
		opal::Matrix44r m;
		Ogre::Vector3 groundDim(170, 16, 170);
		opal::Solid* s = mSimulator->createSolid();
		s->setStatic(true);
		s->setPosition(0, -8, 0);
		opal::BoxShapeData dataGround;
		dataGround.dimensions.set(groundDim[0], groundDim[1], groundDim[2]);
		dataGround.material.density = 1;
		s->addShape(dataGround);
		createPhysicalEntityBox("ground", "Plastic/Gray", groundDim, s);

		// Create a Box
		opal::Point3r mCreationPoint;
		mCreationPoint.set(0, 60, 0);
		Ogre::Vector3 boxDim(3, 10, 5);
		opal::Solid* sb = mSimulator->createSolid();
		sb->setPosition(mCreationPoint);
		opal::BoxShapeData dataBox;
		dataBox.dimensions.set(boxDim[0], boxDim[1], boxDim[2]);
		dataBox.material.density = 10;
		s->addShape(dataBox);
		createPhysicalEntityBox("box", "Plastic/Green", boxDim, sb);

			// Reset the timer for toggle keys.
			mTimeUntilNextToggle = 0.3;