Tighten const qualifiers in collision functions.
PiperOrigin-RevId: 543789453 Change-Id: I929c68b9100a093738c0de6c0965dab4ded1084b
This commit is contained in:
committed by
Copybara-Service
parent
b96532181c
commit
bce2043762
@@ -20,13 +20,13 @@
|
||||
|
||||
// define and extract geom info
|
||||
#define mjGETINFO \
|
||||
mjtNum* pos1 = d->geom_xpos + 3*g1; \
|
||||
mjtNum* mat1 = d->geom_xmat + 9*g1; \
|
||||
mjtNum* size1= m->geom_size + 3*g1; \
|
||||
mjtNum* pos2 = d->geom_xpos + 3*g2; \
|
||||
mjtNum* mat2 = d->geom_xmat + 9*g2; \
|
||||
mjtNum* size2= m->geom_size + 3*g2; \
|
||||
(void) size1; (void) size2;
|
||||
const mjtNum* pos1 = d->geom_xpos + 3*g1; \
|
||||
const mjtNum* mat1 = d->geom_xmat + 9*g1; \
|
||||
const mjtNum* size1 = m->geom_size + 3*g1; \
|
||||
const mjtNum* pos2 = d->geom_xpos + 3*g2; \
|
||||
const mjtNum* mat2 = d->geom_xmat + 9*g2; \
|
||||
const mjtNum* size2 = m->geom_size + 3*g2; \
|
||||
(void) size1; (void) size2; // size1 and size2 are sometimes unused
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user