mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
fixed uninited var
This commit is contained in:
parent
28e1196c5f
commit
1f250aca80
@ -32,6 +32,7 @@ TypeHandle ActorNode::_type_handle;
|
|||||||
ActorNode::
|
ActorNode::
|
||||||
ActorNode(const string &name) :
|
ActorNode(const string &name) :
|
||||||
PhysicalNode(name) {
|
PhysicalNode(name) {
|
||||||
|
_contact_vector = LVector3f::zero();
|
||||||
add_physical(new Physical(1, true));
|
add_physical(new Physical(1, true));
|
||||||
_mass_center = get_physical(0)->get_phys_body();
|
_mass_center = get_physical(0)->get_phys_body();
|
||||||
_mass_center->set_active(true);
|
_mass_center->set_active(true);
|
||||||
@ -46,6 +47,7 @@ ActorNode(const string &name) :
|
|||||||
ActorNode::
|
ActorNode::
|
||||||
ActorNode(const ActorNode ©) :
|
ActorNode(const ActorNode ©) :
|
||||||
PhysicalNode(copy) {
|
PhysicalNode(copy) {
|
||||||
|
_contact_vector = LVector3f::zero();
|
||||||
_ok_to_callback = true;
|
_ok_to_callback = true;
|
||||||
_mass_center = get_physical(0)->get_phys_body();
|
_mass_center = get_physical(0)->get_phys_body();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user