From 1a2fe4974fbf99b046aafdf490f1175a0a6f5b3c Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Sun, 2 Oct 2022 18:15:04 +0300 Subject: [PATCH] Instructions on how to map certain math constants --- CONTRIBUTING.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 962a9534..c3f672c5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -61,6 +61,12 @@ Metaforce -> decomp - `std::max` -> `rstl::max_val` - `std::clamp` -> `CMath::Clamp` (depends on context) +### Converting Vector / Transforms + +Metaforce -> decomp +- `zeus::CTransform::frontVector()` -> `CTransform4f::GetForward()` +- `zeus::skForward` -> `CVector3f::Forward` + ### Class definitions & constructors Metaforce often uses default values inside of class definitions, like the ` = false` below: