This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// raylib+Bullet physics | |
// Sam Jackson | |
// Partially based off this: https://github.com/bulletphysics/bullet3/blob/master/examples/HelloWorld/HelloWorld.cpp | |
#include <vector> | |
#include <btBulletDynamicsCommon.h> | |
#include <raylib.h> | |
btDefaultCollisionConfiguration* collision_configuration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Original Author: https://github.com/Leandros | |
Updated Author: https://github.com/jakebesworth | |
MIT License | |
Copyright (c) 2018 Jake Besworth | |
Original Gist: https://gist.github.com/Leandros/98624b9b9d9d26df18c4 | |
Love.run 11.X: https://love2d.org/wiki/love.run | |
Original Article, 4th algorithm: https://gafferongames.com/post/fix_your_timestep/ | |
Forum Discussion: https://love2d.org/forums/viewtopic.php?f=3&t=85166&start=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.LowLevel; | |
using System.Collections.Generic; | |
using UnityEngine.PlayerLoop; | |
/// <summary> | |
/// Interpolates a GameObject's position and rotation while being updated in FixedUpdate. | |
/// </summary> | |
public class FixedUpdateInterpolation : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local TICKRATE = 1/60 | |
function love.update(dt) | |
end | |
function love.draw(dt) | |
end | |
function love.run() | |
if love.math then |