Fix some warnings
This commit is contained in:
parent
8926f09511
commit
665512402c
|
|
@ -41,9 +41,9 @@ namespace Nz
|
||||||
{
|
{
|
||||||
auto NewtonCallback = [](const NewtonBody* const body, void* const userdata) -> int
|
auto NewtonCallback = [](const NewtonBody* const body, void* const userdata) -> int
|
||||||
{
|
{
|
||||||
const BodyIterator& iterator = *static_cast<BodyIterator*>(userdata);
|
const BodyIterator& bodyIterator = *static_cast<BodyIterator*>(userdata);
|
||||||
RigidBody3D* nzBody = static_cast<RigidBody3D*>(NewtonBodyGetUserData(body));
|
RigidBody3D* nzBody = static_cast<RigidBody3D*>(NewtonBodyGetUserData(body));
|
||||||
return iterator(*nzBody);
|
return bodyIterator(*nzBody);
|
||||||
};
|
};
|
||||||
|
|
||||||
NewtonWorldForEachBodyInAABBDo(m_world, box.GetMinimum(), box.GetMaximum(), NewtonCallback, const_cast<void*>(static_cast<const void*>(&iterator)));
|
NewtonWorldForEachBodyInAABBDo(m_world, box.GetMinimum(), box.GetMaximum(), NewtonCallback, const_cast<void*>(static_cast<const void*>(&iterator)));
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,14 @@
|
||||||
LIBRARY.Name = "chipmunk"
|
LIBRARY.Name = "chipmunk"
|
||||||
|
|
||||||
LIBRARY.Defines = {"CP_USE_CGTYPES=0", "TARGET_OS_IPHONE=0", "TARGET_OS_MAC=0"}
|
LIBRARY.Defines = {
|
||||||
|
"CP_USE_CGTYPES=0",
|
||||||
|
"DRAW_CLOSEST=0",
|
||||||
|
"DRAW_EPA=0",
|
||||||
|
"DRAW_GJK=0",
|
||||||
|
"TARGET_IPHONE_SIMULATOR=0",
|
||||||
|
"TARGET_OS_IPHONE=0",
|
||||||
|
"TARGET_OS_MAC=0",
|
||||||
|
}
|
||||||
|
|
||||||
LIBRARY.Language = "C++"
|
LIBRARY.Language = "C++"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue