fantasy-craft 0.0.2

A 2D / 2.5D game engine built on top of Macroquad and Hecs for the Foxvoid Ecosystem
Documentation
1
2
3
4
5
6
7
use macroquad::prelude::*;
use parry2d::na::{Isometry2, Vector2};

/// Helper to convert Transform + Collider to Isometry2 (used by Parry)
pub fn make_isometry(position: Vec2) -> Isometry2<f32> {
    Isometry2::new(Vector2::new(position.x, position.y), 0.0)
}