Search Unity

Some issuses about Havok Physics

Discussion in 'DOTS Physics' started by wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI, Jan 28, 2021.

  1. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    Hi guys, I need to create a deterministic physical world, but when I use havok physics, I follow the
    https://docs.unity3d.com/Packages/com.unity.physics@0.6/manual/getting_started.html
    But I found that when running, the entity can not be seen, only in the analysis list to see the entity, I do not know where to do wrong, pls help! (I used unity physics in havok physics for simulation. I really want to use it directly in package manager com.unity.physics But I couldn't find it,So I can only download havok physic)
    .
     
  2. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
  3. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    480
    Havok Physics for Unity sits on top of Unity Physics. So if you've added the Havok Physics package to your project manifest.json then Unity Physics will be downloaded as well automatically. You can confirm this by looking in the Library/PackageCache sub folder in your project.

    Unity is currently hiding early preview packages from the package manager. This is a nice article discussing this: Where are the Missing Preview Packages in Unity 2020? | by Jeff Lynch | Medium

    If none of your entities are being rendered you are probably missing the "com.unity.rendering.hybrid" package.
     
  4. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    thanks , ill try
     
  5. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    i
    Thanks !!! it worked!!! But i still dont know why they hide the package like this,its not humanized
     
  6. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    However, there seems to be a problem with unity Phyiscs in webgl. If I package it as webgl, I will be prompted to report an error. The error information is as follows:

    However, there seems to be a problem with unity Phyiscs in webgl. If I package it as webgl, I will be prompted to report an error. The error information is as follows:at http://localhost:52034/Build/www.wasm.gz:wasm-function[28716]:0xbb2cf3....
    upload_2021-1-29_9-17-45.png
    is there any solution,thanks for advance!
     

    Attached Files:

  7. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    480
    Your performance and WebGL issues might not necessarily be a Unity Physics problem specifically. We don't necessarily have the Unity Physics Samples project setup for WebGL as it isn't a platform we have regular testing on. We rely on the usage of Unity Physics in the Tiny Project sample, so projects like Tiny Physics (https://github.com/Unity-Technologies/ProjectTinySamples/tree/master/TinyPhysics) would make a better reference.

    IIRC Havok Physics for Unity doesn't support WebGL at the minute.
     
  8. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    Do you guys have a unity physics program that will support webgl in the future?:(
     
  9. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    SRY,i dont know how to use the project which named Tiny Physics, it seems i need to add something , like Conver to Entity, the picture of demo just is still. upload_2021-1-30_14-24-52.png upload_2021-1-30_14-25-43.png
     
  10. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
  11. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    if i add Conver to Entity, here comes the bugs which i cant solve. pls help me out ,thanks for advance!
     

    Attached Files:

  12. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    In my own test project, I put a floor and a falling ball. If it's a game in the editor or packaged into PC, it can run smoothly. The demo you sent to me is much more complicated than my own, and I feel that I can't run dots physics normally in that demo. Why can't my own demo run smoothly in webgl? You mean havok Physics can't support it. I wadnt to confirm whether unity physics 0.6 preview supports webgl, i need to build the deterministic physical world in webgl.
     
    Last edited: Jan 31, 2021
  13. milos85miki

    milos85miki

    Joined:
    Nov 29, 2019
    Posts:
    197
  14. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    thanks, ill try
     
  15. wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    wechat_os_Qy07am7Wy1_qI2hEgygU9lgVI

    Joined:
    Aug 10, 2019
    Posts:
    36
    thanks, ill try it again
     
unityunity