MCPcopy Create free account
hub / github.com/PerroEngine/Perro / resize_cursor_icon

Function resize_cursor_icon

perro_editor/res/scripts/scene/editor_viewport.rs:2235–2247  ·  view source on GitHub ↗
(handle: &str)

Source from the content-addressed store, hash-verified

2233fn 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 } => {

Callers 1

editor_cursor_iconFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected