mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
Outputting formatted string with scale
This commit is contained in:
parent
20288de685
commit
10810ee311
@ -324,11 +324,18 @@ namespace Physic
|
||||
|
||||
RigidBody* PhysicEngine::createRigidBody(std::string mesh,std::string name,float scale)
|
||||
{
|
||||
char uniqueID[4];
|
||||
sprintf( uniqueID, "%1.2f", scale );
|
||||
std::string sid = uniqueID;
|
||||
std::string outputstring = mesh + sid + ">|";
|
||||
std::cout << outputstring << "\n";
|
||||
|
||||
//get the shape from the .nif
|
||||
mShapeLoader->load(mesh,"General");
|
||||
BulletShapeManager::getSingletonPtr()->load(mesh,"General");
|
||||
BulletShapePtr shape = BulletShapeManager::getSingleton().getByName(mesh,"General");
|
||||
shape->Shape->setLocalScaling(btVector3(scale,scale,scale));
|
||||
|
||||
|
||||
//create the motionState
|
||||
CMotionState* newMotionState = new CMotionState(this,name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user