mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
vectors and matrices should be passed by reference. Fixes compile error on 32-bit windows
This commit is contained in:
parent
2b26ef1e34
commit
9184fe71a9
@ -163,7 +163,7 @@ get_name() const {
|
|||||||
// transform from the controller's transform.
|
// transform from the controller's transform.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void PhysxActor::
|
void PhysxActor::
|
||||||
update_transform(const LMatrix4f m) {
|
update_transform(const LMatrix4f &m) {
|
||||||
|
|
||||||
// Active transforms are update AFTER scene.fetchResults() has
|
// Active transforms are update AFTER scene.fetchResults() has
|
||||||
// been called, and thus can contain removed objects. So either
|
// been called, and thus can contain removed objects. So either
|
||||||
|
@ -180,7 +180,7 @@ PUBLISHED:
|
|||||||
INLINE void ls(ostream &out, int indent_level=0) const;
|
INLINE void ls(ostream &out, int indent_level=0) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void update_transform(const LMatrix4f m);
|
void update_transform(const LMatrix4f &m);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
|
@ -279,7 +279,7 @@ get_sleep_damping() const {
|
|||||||
// of mass.
|
// of mass.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void PhysxBodyDesc::
|
void PhysxBodyDesc::
|
||||||
set_mass_local_mat(const LMatrix4f mat) {
|
set_mass_local_mat(const LMatrix4f &mat) {
|
||||||
|
|
||||||
_desc.massLocalPose = PhysxManager::mat4_to_nxMat34(mat);
|
_desc.massLocalPose = PhysxManager::mat4_to_nxMat34(mat);
|
||||||
}
|
}
|
||||||
@ -303,7 +303,7 @@ get_mass_local_mat() const {
|
|||||||
// bodies mass frame.
|
// bodies mass frame.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void PhysxBodyDesc::
|
void PhysxBodyDesc::
|
||||||
set_mass_space_inertia(const LVector3f inertia) {
|
set_mass_space_inertia(const LVector3f &inertia) {
|
||||||
|
|
||||||
_desc.massSpaceInertia = PhysxManager::vec3_to_nxVec3(inertia);
|
_desc.massSpaceInertia = PhysxManager::vec3_to_nxVec3(inertia);
|
||||||
}
|
}
|
||||||
|
@ -46,8 +46,8 @@ PUBLISHED:
|
|||||||
void set_solver_iteration_count(unsigned int count);
|
void set_solver_iteration_count(unsigned int count);
|
||||||
void set_sleep_energy_threshold(float threshold);
|
void set_sleep_energy_threshold(float threshold);
|
||||||
void set_sleep_damping(float damping);
|
void set_sleep_damping(float damping);
|
||||||
void set_mass_local_mat(const LMatrix4f mat);
|
void set_mass_local_mat(const LMatrix4f &mat);
|
||||||
void set_mass_space_inertia(const LVector3f inertia);
|
void set_mass_space_inertia(const LVector3f &inertia);
|
||||||
void set_flag(PhysxBodyFlag flag, bool value);
|
void set_flag(PhysxBodyFlag flag, bool value);
|
||||||
void set_ccd_motion_threshold(float threshold);
|
void set_ccd_motion_threshold(float threshold);
|
||||||
void set_wake_up_counter(float value);
|
void set_wake_up_counter(float value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user