|
group2 0.1.0
CSE 125 Group 2
|
First-person weapon viewmodel descriptor sent per frame. More...
#include <RendererTypes.hpp>
Public Attributes | |
| int32_t | modelIndex = -1 |
| Renderer-side model handle. | |
| glm::mat4 | transform {1.0f} |
| Transform in viewmodel space (relative to camera). | |
| ViewmodelHands | hands {} |
| Optional first-person hands attached to weapon grip mounts. | |
| ViewmodelAttachment | debugPoint {} |
| Optional red debug marker for live mount tweaking. | |
| bool | visible = false |
| False = skip drawing this frame (e.g. weapon hidden). | |
First-person weapon viewmodel descriptor sent per frame.
Game.cpp computes the viewmodel transform from camera state + sway/recoil each frame and hands it off via setWeaponViewmodel().
| ViewmodelAttachment WeaponViewmodel::debugPoint {} |
Optional red debug marker for live mount tweaking.
| ViewmodelHands WeaponViewmodel::hands {} |
Optional first-person hands attached to weapon grip mounts.
| int32_t WeaponViewmodel::modelIndex = -1 |
Renderer-side model handle.
| glm::mat4 WeaponViewmodel::transform {1.0f} |
Transform in viewmodel space (relative to camera).
| bool WeaponViewmodel::visible = false |
False = skip drawing this frame (e.g. weapon hidden).