Git Product home page Git Product logo

truesyncexample's Introduction

TrueSyncExample

这是一个帧同步的插件,具有确定性物理引擎,定点函数库,碰撞检测,高度封装,跟unity函数库保持高度一致。

一:其中有5个场景示例文件:

001:测试自然物理刚体学 002:测试自然物理碰撞 003:测试物理碰撞检测 004:测试复杂环境之下的物理碰撞 005:测试不规则碰撞及检测

二:检测碰撞相关消息: public void OnSyncedCollisionEnter(TSCollision other) {

}
public void OnSyncedCollisionStay(TSCollision other)
{

}
public void OnSyncedCollisionExit(TSCollision other)
{

}
public void OnSyncedTriggerEnter(TSCollision other)
{

}
public void OnSyncedTriggerStay(TSCollision other)
{

}
public void OnSyncedTriggerExit(TSCollision other)
{

}

三:注意事项: 1.0 场景中需要TrueSyncManager环境 2.0 生成的预制体需要由TrueSyncManager生成,具有TrueSyncBehavir环境 3.0 物理出现平滑位移应该指定TsMaterial控制阻尼系数,恢复系数。

truesyncexample's People

Contributors

aaa719717747 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.