Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Issue regarding rigid body. — Gideros Forum

Issue regarding rigid body.

SarthakSarthak Member
edited November 2014 in General questions
I am facing some issue regarding rigid body. I have created 3 scenes in my game, whenever i switch from one scene to another very quickly(2-3 times within a second), sometimes the rigid bodies are not allocated to some of the objects, so please tell me what i have to do?

Likes: Sarthak

+1 -1 (+1 / -0 )Share on Facebook

Comments

  • talistalis Guru
    edited January 2015 Accepted Answer
    can you share a code sample of your problem?
    Where are you creating your objects i mean which event of scenemanager and are you destroying them while switching the scene?
    Maybe the problem lies there.
  • ar2rsawseenar2rsawseen Maintainer
    Accepted Answer
    @Sarthak if you are using SceneManager, then you may want to add your bodies inside enterEnd event
    function Scene:init()
        self:addEventListener("enterEnd", self.onEnterEnd, self)
    end
     
    function Scene:onEnterEnd()
        --add boddies here
    end

    Likes: Sarthak

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.