0 Favourites

Simulating physics

  • Hello all,

    For my game I have been using physics, and of course this is rather intensive on the ol' system resources. I managed to make a major game-play improvement by making monsters only simulate physics behavior instead of have the physics property iteself; so if they touched something that needed to move, there is an event that just applies an impulse at the monster's angle to the object - far, far more system friendly.

    Now what I want to do is take all of my wall objects and remove the physics from them since there are a lot of them, but I don't want physics objects to pass through them (physics objects just slide right through non-physics objects). I wanted to do something similar to what I did for the monsters, but it was a lot simpler for the monsters. For walls, the physics object colliding with it needs to stop and perhaps even bounce off the wall slightly, but I am unsure how to do that. Further, without the physics property, the player-controlled character now just goes through walls like they are not even there.

    What would you do to fix these issues?

    Thanks in advance!

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
1,941 263,394
FlyingRam's avatar
FlyingRam
Unread hot topic
0 Favourites
[BEHAVIOR] Chipmunk Physics
673 82,538
nelostic's avatar
nelostic
Unread hot topic
0 Favourites
[BEHAVIOR] Sonic Physics
126 31,186
Ostrich10164's avatar
Ostrich10164