Use put_object for objects as well
This commit is contained in:
parent
f06e502e26
commit
a4e2573a7c
|
|
@ -49,15 +49,11 @@ pub fn main() {
|
|||
.enumerate()
|
||||
.map(|(k, &y)| Object {
|
||||
id: k as i32,
|
||||
loc: {
|
||||
let pos = vec2(0.0, y * tube.external_halflength);
|
||||
let adj: Mat2 = tube.sqrt_at(pos).inverse().into();
|
||||
let rot = Mat2::from_angle(y);
|
||||
Location {
|
||||
pos,
|
||||
rot: adj * rot,
|
||||
}
|
||||
},
|
||||
loc: put_object(
|
||||
&tube,
|
||||
vec2(0.0, y * tube.external_halflength),
|
||||
Mat2::from_angle(y),
|
||||
),
|
||||
r: 20.0,
|
||||
})
|
||||
.collect();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user