Fix some warnings
This commit is contained in:
@@ -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)));
|
||||||
|
|||||||
10
thirdparty/build/chipmunk.lua
vendored
10
thirdparty/build/chipmunk.lua
vendored
@@ -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++"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user