forked from Dynamitos/Seele
overhauled physics engine
This commit is contained in:
1 parent
3c7346cf7b
commit
2208ab438a
164 files changed
+22606
-928
No files matched your search
@@ -6,7 +6,7 @@ using namespace Seele;
|
||||
Actor::Actor(PScene scene)
|
||||
: Entity(scene)
|
||||
{
|
||||
scene->attachComponent<Component::Transform>(identifier);
|
||||
attachComponent<Component::Transform>();
|
||||
}
|
||||
|
||||
Actor::~Actor()
|
||||
@@ -32,13 +32,9 @@ void Actor::removeChild(PActor child)
|
||||
children.remove(children.find(child), false);
|
||||
child->setParent(nullptr);
|
||||
}
|
||||
const Component::Transform& Actor::getTransform() const
|
||||
|
||||
Component::Transform& Actor::getTransform()
|
||||
{
|
||||
return scene->accessComponent<Component::Transform>(identifier);
|
||||
return accessComponent<Component::Transform>();
|
||||
}
|
||||
|
||||
//Component::Transform& Actor::getTransform()
|
||||
//{
|
||||
// return scene->accessComponent<Component::Transform>(identifier);
|
||||
//}
|
||||
|
||||
Reference in new issue
Block a user