3D Math

From PenguinMod Wiki
Jump to navigation Jump to search
3D Math
[[File:
|200px]]
Caption
Description A handful of utilities for making your own sprite-based 3D engine.
Link fortnite.com
Added fortnite...

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
ve Extension Navigation
Vanilla Music  · Pen  · Animated Text^  · Video Sensing  · Text to Speech  · Translate  · Makey Makey  · micro:bit  · LEGO MINDSTORMS EV3  · LEGO BOOST  · LEGO Education WeDo 2.0  · Go Direct Force & Acceleration
TurboWarp Files  · Physics  · Clones+  · Skins  · HTTP  · CloudLink  · McUtils  · GamePad  · Clipping and Blending  · Pointer Lock  · Mouse Cursor  · TurboWarp Blocks
PenguinMod Stage Camera  · Sound Systems  · Sound Waves  · Motion  · Events  · Control  · Sensing  · Operators  · JSON  · Custom Styles  · Tweening  · Tailgating  · Tile Grids  · Canvas Effects  · Multiple Timers  · Temporary Variables  · Runtime Modifications  · Font Manager  · Storage  · CloudLink  · Scripts  · Pang API  · 3D Math  · Extra Mathematics  · Random Utilities  · LZ Compress  · Prism  · Odd Messages  · PenguinGPT  · HTML iframe Elements  · Color Picker  · Colors  · All Menus  · Labels  · Perlin Noise  · CATS  · Printing  · Scratch Authentication  · JavaScript  · Easy Save*  · XML*  · Debugging*  · 3D Extension*  · 3D Physics*  · 3D Virtual Reality*  · Interfaces*  · Packager Applications*  · Inline Blocks*  · Pathfinding*  · Animation*  · Virtual Reality*  · PenguinMod Extra Extensions
Former Files  · Clone Communication  · PenguinMod Permissions  · Website Request Blocks  · OOP  · HTML Canvas  · Unite  · Advanced Text
April Fools Test Extension  · Christmas  · an amazing extension  · Epic utilities  · image blocks  · fire in the hole  · the doo doo extension
Key
*: Work in progress or never released  · ^: Scratch Lab