mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-06-27 11:54:41 +00:00
24 lines
477 B
C#
24 lines
477 B
C#
using UnityEngine;
|
|
using Space = BEPUphysics.Space;
|
|
|
|
namespace Plugins.JNGame.BepuPhysics
|
|
{
|
|
public class JNBepuPhysics1
|
|
{
|
|
|
|
public Space Space { get; protected set; }
|
|
|
|
public JNBepuPhysics1(int index = 0)
|
|
{
|
|
Debug.Log($"初始化物理引擎");
|
|
Space = new Space();
|
|
}
|
|
|
|
|
|
//更新
|
|
public void OnUpdate(float dt)
|
|
{
|
|
Space.Update(dt);
|
|
}
|
|
}
|
|
} |