Physics/PhysWorld3D: Add [Get|Set]ThreadCount
This commit is contained in:
@@ -76,6 +76,11 @@ namespace Nz
|
||||
return m_stepSize;
|
||||
}
|
||||
|
||||
unsigned int PhysWorld3D::GetThreadCount() const
|
||||
{
|
||||
return NewtonGetThreadsCount(m_world);
|
||||
}
|
||||
|
||||
void PhysWorld3D::SetGravity(const Vector3f& gravity)
|
||||
{
|
||||
m_gravity = gravity;
|
||||
@@ -96,6 +101,11 @@ namespace Nz
|
||||
m_stepSize = stepSize;
|
||||
}
|
||||
|
||||
void PhysWorld3D::SetThreadCount(unsigned int threadCount)
|
||||
{
|
||||
NewtonSetThreadsCount(m_world, threadCount);
|
||||
}
|
||||
|
||||
void PhysWorld3D::SetMaterialCollisionCallback(int firstMaterial, int secondMaterial, AABBOverlapCallback aabbOverlapCallback, CollisionCallback collisionCallback)
|
||||
{
|
||||
static_assert(sizeof(UInt64) >= 2 * sizeof(int), "Oops");
|
||||
|
||||
Reference in New Issue
Block a user