mirror of
https://github.com/CraftyBoss/SuperMarioOdysseyOnline.git
synced 2024-12-01 07:33:07 +00:00
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#include <sead/math/seadVector.h>
|
|
#include <sead/math/seadMatrix.h>
|
|
|
|
#include "al/hio/HioNode.h"
|
|
#include "CollisionDirector.h"
|
|
|
|
typedef unsigned int uint;
|
|
|
|
namespace al
|
|
{
|
|
struct SphereInterpolator;
|
|
struct SphereHitInfo;
|
|
struct CollisionPartsFilterBase;
|
|
struct TriangleFilterBase;
|
|
|
|
class Collider : public al::HioNode, public IUseCollision {
|
|
public:
|
|
Collider(al::CollisionDirector*, sead::Matrix34f const*, sead::Vector3f const*,
|
|
sead::Vector3f const*, float, float, uint);
|
|
void calcCheckPos(sead::Vector3f*);
|
|
void calcMovePowerByContact(sead::Vector3f*, sead::Vector3f const&);
|
|
void clear();
|
|
void clearContactPlane();
|
|
void clearStoredPlaneNum();
|
|
sead::Vector3f collide(sead::Vector3f const&);
|
|
void findCollidePos(int*, al::SphereInterpolator*, al::SphereHitInfo*, uint);
|
|
void getCollisionDirector();
|
|
void getPlane(int);
|
|
void getRecentOnGroundNormal(uint);
|
|
void obtainMomentFixReaction(al::SphereHitInfo*, sead::Vector3f*,
|
|
sead::Vector3f*, bool, uint);
|
|
void onInvalidate();
|
|
void preCollide(al::SphereInterpolator*, sead::Vector3f*, float*, sead::Vector3f const&,
|
|
al::SphereHitInfo*, uint);
|
|
void setCollisionPartsFilter(al::CollisionPartsFilterBase const*);
|
|
void setTriangleFilter(al::TriangleFilterBase const *);
|
|
void storeContactPlane(al::SphereHitInfo *);
|
|
void storeCurrentHitInfo(al::SphereHitInfo *, uint);
|
|
void updateRecentOnGroundInfo();
|
|
};
|
|
} // namespace al
|