mirror of
https://github.com/zeldaret/oot3d.git
synced 2026-09-29 07:00:50 -04:00
41 lines
974 B
C++
41 lines
974 B
C++
extern "C" {
|
|
#include "non_matchings.hpp"
|
|
#include "z3D.hpp"
|
|
#include "math.hpp"
|
|
#include "functions.hpp"
|
|
|
|
GLOBAL_ASM("data/z_collision.data.s")
|
|
|
|
static s32 Collider_DestroyBase(PlayState* play, Collider* collider) {
|
|
return 1;
|
|
}
|
|
|
|
static s32 Collider_DestroyTouch(PlayState* play, ColliderTouch* touch) {
|
|
return 1;
|
|
}
|
|
|
|
static s32 Collider_DestroyBump(PlayState* play, ColliderBump* bump) {
|
|
return 1;
|
|
}
|
|
|
|
static s32 Collider_DestroyInfo(PlayState* play, ColliderInfo* info) {
|
|
Collider_DestroyTouch(play, &info->toucher);
|
|
Collider_DestroyBump(play, &info->bumper);
|
|
return 1;
|
|
}
|
|
|
|
static s32 Collider_DestroyCylinderDim(PlayState* play, Cylinderf* dim) {
|
|
return 1;
|
|
}
|
|
|
|
/**
|
|
* Destroys a ColliderCylinder
|
|
*/
|
|
s32 Collider_DestroyCylinder(PlayState* play, ColliderCylinder* collider) {
|
|
Collider_DestroyBase(play, &collider->base);
|
|
Collider_DestroyInfo(play, &collider->info);
|
|
Collider_DestroyCylinderDim(play, &collider->dim);
|
|
return 1;
|
|
}
|
|
}
|