mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
no longer need to fmod getHpr; this is done in the dc syntax now
This commit is contained in:
parent
66c6df9d92
commit
9f7b53723d
@ -916,12 +916,7 @@ get_hpr() const {
|
||||
nassertr_always(!is_empty(), LVecBase3f(0.0f, 0.0f, 0.0f));
|
||||
CPT(TransformState) transform = get_transform();
|
||||
nassertr(transform->has_hpr(), LVecBase3f(0.0f, 0.0f, 0.0f));
|
||||
// now that we are range checking fields we must clamp this
|
||||
LVecBase3f hpr = transform->get_hpr();
|
||||
hpr[0] = fmod(hpr[0], 360);
|
||||
hpr[1] = fmod(hpr[1], 360);
|
||||
hpr[2] = fmod(hpr[2], 360);
|
||||
return hpr;
|
||||
return transform->get_hpr();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -1409,12 +1404,7 @@ get_hpr(const NodePath &other) const {
|
||||
nassertr_always(!is_empty(), LVecBase3f(0.0f, 0.0f, 0.0f));
|
||||
CPT(TransformState) transform = get_transform(other);
|
||||
nassertr(transform->has_hpr(), LVecBase3f(0.0f, 0.0f, 0.0f));
|
||||
// now that we are range checking fields we must clamp this
|
||||
LVecBase3f hpr = transform->get_hpr();
|
||||
hpr[0] = fmod(hpr[0], 360);
|
||||
hpr[1] = fmod(hpr[1], 360);
|
||||
hpr[2] = fmod(hpr[2], 360);
|
||||
return hpr;
|
||||
return transform->get_hpr();
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user