fixed uninited var

This commit is contained in:
Dave Schuyler 2003-09-06 06:10:39 +00:00
parent 28e1196c5f
commit 1f250aca80

View File

@ -32,6 +32,7 @@ TypeHandle ActorNode::_type_handle;
ActorNode::
ActorNode(const string &name) :
PhysicalNode(name) {
_contact_vector = LVector3f::zero();
add_physical(new Physical(1, true));
_mass_center = get_physical(0)->get_phys_body();
_mass_center->set_active(true);
@ -46,6 +47,7 @@ ActorNode(const string &name) :
ActorNode::
ActorNode(const ActorNode &copy) :
PhysicalNode(copy) {
_contact_vector = LVector3f::zero();
_ok_to_callback = true;
_mass_center = get_physical(0)->get_phys_body();
}