How I make a ball with physics bounce on no physics objects?

0 favourites
  • 7 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • I'm trying to do the soccer ball physics from a top down view. Is working perfect now it's simply to know if there is a more efficient way to do that.

    Actually i have the ball bouncing with other objects adding to every object to a family that have the behaviour of physics with:

    Inamovable: Yes | Collision mask: Use collision Polygon.

    This is how is working now:

    https://instagram.com/p/4zZHf-gLzH/

    Is there another way to make the ball bounce with objects, for example with the ones that have the "solid" behaviour?. With this i will have one less family and behaviour added to the objects and i guess the perfomance will be better instead of add physics to all the objects that i want the ball bounce, right?

    Will be great an option on the physics object called "Bounce". So when Ball collides an object -> Bounce. But i not found nothing ¿?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nothing? So there is no possible? :S all the examples i found their use physics in the objects to bounce so i guess there will be no possibility.

    Then will be great for next updates of the physics object an event or parameter to say: "bounce on solids? - Yes/No".

  • You can have the bullet behavior bounce off solids, but the physics behavior needs the other objects to have physics to work. The physics behavior will give more realistic bounces though. The third option would be to do your own physics with events, but this isn't by any means simple.

  • You can have the bullet behavior bounce off solids, but the physics behavior needs the other objects to have physics to work. The physics behavior will give more realistic bounces though. The third option would be to do your own physics with events, but this isn't by any means simple.

    The problem is that with bullet behaviour the sprite move towards the rotation angle, so i can't make the ball moves, bounce and give them some sprite rotation depending of the velocity because this will change the real direction.

    I mean, actually with physics i give the ball impulse to move/bounce and give the sprite some rotation depending of the velocity and works correctly.

    So or there is any form to use the Bullet behaviour to move, bounce and rotate the sprite without this affect to the direction angle of the movement or i use 2 sprites, one that moves and bounce and set invisible and the sprite ball every tick in the same position giving rotation depending of the speed. But with the last one i will have to create/use 2 sprites for every thing i want to make the same effect.

    Create my own physics well, i'm a noob i only have a few days of experience on C2 so not .

  • You can make the bullet behavior not affect the sprite's angle by setting it's "set angle" property to "no".

  • Yes but if i set "no" then i can launch the ball towards angle using Bullet Behaviour to calculate in what direction will be theball moving when is touched by the player.

    At least i tested in both ways and with the "property: no" i was not able to launch/move the ball towards some angle ¿?. I will test again with other options but i remember that not works correctly.

  • Yes but if i set "no" then i can launch the ball towards angle using Bullet Behaviour to calculate in what direction will be theball moving when is touched by the player.

    At least i tested in both ways and with the "property: no" i was not able to launch/move the ball towards some angle ¿?. I will test again with other options but i remember that not works correctly.

    Setting the angle has nothing to do with setting the angle of motion..

    To launch the ball at angle you should use ball set bullet angle of motion..

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)