(handle: &str)
| 2233 | fn collision_shape_vertex_points(shape: &Shape3D) -> Vec<Vector3> { |
| 2234 | match shape { |
| 2235 | Shape3D::Cube { size } => { |
| 2236 | let hx = size.x.abs() * 0.5; |
| 2237 | let hy = size.y.abs() * 0.5; |
| 2238 | let hz = size.z.abs() * 0.5; |
| 2239 | vec![ |
| 2240 | Vector3::new(-hx, -hy, -hz), |
| 2241 | Vector3::new(hx, -hy, -hz), |
| 2242 | Vector3::new(hx, hy, -hz), |
| 2243 | Vector3::new(-hx, hy, -hz), |
| 2244 | Vector3::new(-hx, -hy, hz), |
| 2245 | Vector3::new(hx, -hy, hz), |
| 2246 | Vector3::new(hx, hy, hz), |
| 2247 | Vector3::new(-hx, hy, hz), |
| 2248 | ] |
| 2249 | } |
| 2250 | Shape3D::Sphere { radius } => { |
no outgoing calls
no test coverage detected