reng 0.1.1

A simple OpenGL engine with physics, UI, complex model handling and much more!
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use glam::{Quat, Vec3};

#[derive(Copy, Clone)]
pub struct Transform{
    pub position: Vec3,
    pub scale: Vec3,
    pub rotation: Quat,
}

impl Transform{
    pub fn new() -> Self{
        Transform{
            position: Vec3::ZERO,
            scale: Vec3::ONE,
            rotation: Quat::from_euler(glam::EulerRot::XYZ, 0.0, 0.0, 0.0),
        }
    }
}