mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-08 22:45:12 -04:00
22 lines
488 B
C++
22 lines
488 B
C++
#pragma once
|
|
|
|
#include <libultraship.h>
|
|
#include <libultra/gbi.h>
|
|
#include "GameObject.h"
|
|
|
|
#include "EditorMath.h"
|
|
|
|
/**
|
|
* @file Editor Collision
|
|
*
|
|
* Most actors use cylinder collision.
|
|
* Proper vtx intersection tests are necessary for object picking
|
|
*
|
|
* Therefore, generate a full collision mesh for actors
|
|
*/
|
|
|
|
#define EDITOR_GFX_GET_OPCODE(var) ((uint32_t) ((var) & 0xFF000000))
|
|
|
|
namespace Editor {
|
|
void GenerateCollisionMesh(GameObject* object, Gfx* model, float scale);
|
|
} |