3D Math
Jump to navigation
Jump to search
The 3D Math extension is a PenguinMod extension that has useful utilities to help with 3D math in PenguinMod.
Blocks
Vector 3
- vector 3 x: () y: () z: ()
- vector 3 from ()
- get the [] axis of ()
Equations
- V3: () + ()
- V3: () - ()
- V3: () * ()
- V3: () / ()
- V3: dot product between () and ()
- V3: cross product between () and ()
- V3: magnitude of ()
- V3: distance between () and ()
- V3: rotate () around () by yaw: () pitch: (), and roll: ()
- V3: rotate () around the center by yaw: () pitch: (), and roll: ()
Vector 2
- vector 2 x: () y: ()
- vector 2 from ()
- V2: get the [] axis of ()
- get projected () to 2D from camera
- get projected () to 2D from () yaw: () pitch: () roll: ()
Equations
- V2: () + ()
- V2: () - ()
- V2: () * ()
- V2: () / ()
- V2: dot product between () and ()
- V2: cross product between () and ()
- V2: magnitude of ()
- V2: distance between () and ()
- V2: rotate () around () by () degrees
- V2: rotate () around the center by () degrees
camera
- set camera position to ()
- change camera position by ()
- change camera [] by ()
- get camera position
- set camera rotation to ()
- change camera rotation by ()
- change camera [] by ()
- get camera rotation
- set fov to ()
- change fov by ()
- fov
sprite 3D
- set my position to ()
- set my [] to ()
- change my position by ()
- change my [] by ()
- my 3d position
- my [] position
- set my 3d size to ()
- change my 3d size by ()
- my 3d size
- go to my position in 3D