39#ifndef DART_SIMULATION_DETAIL_WORLD_IMPL_HPP_
40#define DART_SIMULATION_DETAIL_WORLD_IMPL_HPP_
48template <
typename... Args>
51 return std::make_shared<World>(std::forward<Args>(args)...);
55template <
typename Func>
58 if constexpr (std::is_same_v<
59 std::invoke_result_t<Func, const dynamics::Skeleton*>,
64 if (!func(skel.get()))
78template <
typename Func>
81 if constexpr (std::is_same_v<
82 std::invoke_result_t<Func, dynamics::Skeleton*>,
87 if (!func(skel.get()))
101template <
typename Func>
104 if constexpr (std::is_same_v<
105 std::invoke_result_t<Func, const dynamics::SimpleFrame*>,
110 if (!func(simpleFrame.get()))
118 func(simpleFrame.get());
124template <
typename Func>
127 if constexpr (std::is_same_v<
128 std::invoke_result_t<Func, dynamics::SimpleFrame*>,
133 if (!func(simpleFrame.get()))
141 func(simpleFrame.get());
std::vector< dynamics::SkeletonPtr > mSkeletons
Skeletons in this world.
Definition World.hpp:333
std::vector< dynamics::SimpleFramePtr > mSimpleFrames
Entities in this world.
Definition World.hpp:346
void eachSimpleFrame(Func func) const
Iterates all the SimpleFrames and invokes the callback function.
Definition World-impl.hpp:102
void eachSkeleton(Func func) const
Iterates all the Skeletons and invokes the callback function.
Definition World-impl.hpp:56
static WorldPtr create(Args &&... args)
Creates World as shared_ptr.
Definition World-impl.hpp:49
std::shared_ptr< World > WorldPtr
Definition SmartPointer.hpp:41
Definition BulletCollisionDetector.cpp:60