Any Way To Change Collision Shape When 3d Model Of Character Is Changed?

Discussion in 'How Can I...?' started by Rohan Bhardwaj, May 7, 2020.

  1. Rohan Bhardwaj

    Rohan Bhardwaj Boxer

    Joined:
    May 7, 2020
    Messages:
    1
    Likes Received:
    0
    Hey guys,
    Like the title says, I have a character with 4 3d models, namely cube, sphere, cone and cylinder. Is it possible to use javascript to make it so that when I'm changing the 3d model using a swipe, it'll update the collision shape of the object? Right now it's cube for all the models, which isn't helping with the gameplay at all, as I need the respective collision shapes for the 3d models. I read something about the function rebuildShape() but, I'm not able to implement that.
    Any help would be greatly appreciated.
     

Share This Page