mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
add pushers-horizontal and make the initial default for CollisionHandlerPusher::set_horizontal() be false.
This commit is contained in:
parent
433e89f820
commit
ffa6d1bf16
@ -43,7 +43,7 @@ public:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
CollisionHandlerPusher::
|
||||
CollisionHandlerPusher() {
|
||||
_horizontal = true;
|
||||
_horizontal = pushers_horizontal;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
@ -102,6 +102,12 @@ ConfigVariableInt fluid_cap_amount
|
||||
("fluid-cap-amount", 100,
|
||||
PRC_DESC("ensures that fluid pos doesn't check beyond X feet"));
|
||||
|
||||
ConfigVariableBool pushers_horizontal
|
||||
("pushers-horizontal", false,
|
||||
PRC_DESC("Set this true to make all CollisionHandlerPushers have the "
|
||||
"set_horizontal() flag by default, false to let the move "
|
||||
"in three dimensions by default."));
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: init_libcollide
|
||||
// Description: Initializes the library. This must be called at
|
||||
|
@ -30,6 +30,7 @@ extern EXPCL_PANDA_COLLIDE ConfigVariableBool flatten_collision_nodes;
|
||||
extern EXPCL_PANDA_COLLIDE ConfigVariableDouble collision_parabola_bounds_threshold;
|
||||
extern EXPCL_PANDA_COLLIDE ConfigVariableInt collision_parabola_bounds_sample;
|
||||
extern EXPCL_PANDA_COLLIDE ConfigVariableInt fluid_cap_amount;
|
||||
extern EXPCL_PANDA_COLLIDE ConfigVariableBool pushers_horizontal;
|
||||
|
||||
extern EXPCL_PANDA_COLLIDE void init_libcollide();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user