fix PhysicBody
This commit is contained in:
parent
a134a2e952
commit
537f38bde1
|
|
@ -31,7 +31,7 @@ namespace physics
|
||||||
PhysicBody::PhysicBody(PhysicWorld* world, Type type)
|
PhysicBody::PhysicBody(PhysicWorld* world, Type type)
|
||||||
: body_(nullptr)
|
: body_(nullptr)
|
||||||
, world_(world)
|
, world_(world)
|
||||||
, type_(Type::Static)
|
, type_(type)
|
||||||
, category_bits_(0x0001)
|
, category_bits_(0x0001)
|
||||||
, mask_bits_(0xFFFF)
|
, mask_bits_(0xFFFF)
|
||||||
, group_index_(0)
|
, group_index_(0)
|
||||||
|
|
@ -44,6 +44,11 @@ PhysicBody::PhysicBody(PhysicWorld* world, Type type)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PhysicBody::PhysicBody(PhysicWorldPtr world, Type type)
|
||||||
|
: PhysicBody(world.Get(), type)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
PhysicBody::~PhysicBody() {}
|
PhysicBody::~PhysicBody() {}
|
||||||
|
|
||||||
void PhysicBody::InitComponent(Actor* actor)
|
void PhysicBody::InitComponent(Actor* actor)
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,12 @@ public:
|
||||||
/// @param type ÎïÌåÀàÐÍ
|
/// @param type ÎïÌåÀàÐÍ
|
||||||
PhysicBody(PhysicWorld* world, Type type);
|
PhysicBody(PhysicWorld* world, Type type);
|
||||||
|
|
||||||
|
/// \~chinese
|
||||||
|
/// @brief 初始化物体
|
||||||
|
/// @param world 物理世界
|
||||||
|
/// @param type 物体类型
|
||||||
|
PhysicBody(PhysicWorldPtr world, Type type);
|
||||||
|
|
||||||
virtual ~PhysicBody();
|
virtual ~PhysicBody();
|
||||||
|
|
||||||
/// \~chinese
|
/// \~chinese
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue