Mesh Not Showing Bug

Discussion in 'Buildbox 3.0' started by thatguyminib, Aug 3, 2018.

  1. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    Hey everyone so I have been getting this bug that the mesh is not showing up pasted the start scene.
    Anyone know why this might be? @NikRudenko @AlexBB

    ezgif.com-video-to-gif (10).gif
     
  2. NikRudenko

    NikRudenko Administrator Staff Member

    Joined:
    Sep 25, 2015
    Messages:
    179
    Likes Received:
    493
    Ah yes. we've got it. IT happened to Dynamic objects that is not placed on Start scene. I already fixed that one but can't send you a new build yet. There is few instabilities that might drive you crazy.
     
  3. jmiller8031

    jmiller8031 Avid Boxer

    Joined:
    Feb 23, 2018
    Messages:
    218
    Likes Received:
    82
    @NikRudenko sorry to highjack the thread, but thatguyminib and I are trying to figure out how to configure physics on the fly. I see that there are two methods available. The first is enable/disable, which I would think would be a bad idea for physics calculations. The other we found was setting the type, which I was able to figure out through logs as being the strings kDynamic, kStatic, and kKinematic. What do you recommend?
     
  4. NikRudenko

    NikRudenko Administrator Staff Member

    Joined:
    Sep 25, 2015
    Messages:
    179
    Likes Received:
    493
    If you want to activate deactivate physics body via Script you can do it via setActive();

    let phys = this.entity().physics(); // getting physics object;
    phys.setActive( false ); // will disable physics (it is like set your physics to Kinematic)
    phys.setActive( true ); // will enable physics for body and pretty much like set to Dynamic
    let me know if that works for you
     
    jmiller8031 and thatguyminib like this.
  5. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    You are awesome @NikRudenko
     
  6. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    let phys = this.entity().physics(); // getting physics object; this line keeps returning null.
     
  7. NikRudenko

    NikRudenko Administrator Staff Member

    Joined:
    Sep 25, 2015
    Messages:
    179
    Likes Received:
    493
    that means there is no Physics enabled. set check bog for Physics at start node
     
  8. thatguyminib

    thatguyminib Serious Boxer

    Joined:
    Jul 1, 2017
    Messages:
    552
    Likes Received:
    309
    I shall try it out!

    Will we be able to have access to the camera as well? Like be able to script it to follow different objects during a game?
     

Share This Page