mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
formatting
This commit is contained in:
parent
88c436e5b9
commit
d653234504
@ -66,7 +66,7 @@ attach_physicalnode(PhysicalNode *p) {
|
|||||||
INLINE void PhysicsManager::
|
INLINE void PhysicsManager::
|
||||||
attach_physical_node(PhysicalNode *p) {
|
attach_physical_node(PhysicalNode *p) {
|
||||||
nassertv(p);
|
nassertv(p);
|
||||||
for (int i = 0; i < p->get_num_physicals(); i++) {
|
for (int i = 0; i < p->get_num_physicals(); ++i) {
|
||||||
attach_physical(p->get_physical(i));
|
attach_physical(p->get_physical(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ PhysicsManager::
|
|||||||
// For synchronizing across distributed computers
|
// For synchronizing across distributed computers
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void PhysicsManager::
|
void PhysicsManager::
|
||||||
init_random_seed(void) {
|
init_random_seed() {
|
||||||
// Use the random seed specified by the physics_manager_random_seed
|
// Use the random seed specified by the physics_manager_random_seed
|
||||||
// Config Variable
|
// Config Variable
|
||||||
srand(_random_seed);
|
srand(_random_seed);
|
||||||
@ -125,7 +125,7 @@ remove_physical(Physical *p) {
|
|||||||
void PhysicsManager::
|
void PhysicsManager::
|
||||||
remove_physical_node(PhysicalNode *p) {
|
remove_physical_node(PhysicalNode *p) {
|
||||||
nassertv(p);
|
nassertv(p);
|
||||||
for (int i = 0; i < p->get_num_physicals(); i++) {
|
for (int i = 0; i < p->get_num_physicals(); ++i) {
|
||||||
remove_physical(p->get_physical(i));
|
remove_physical(p->get_physical(i));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user