User Tag List

Results 1 to 3 of 3

Thread: Best way to go about custom physics engine? and pathfinding in it

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Aug 2015
    0 Post(s)
    0 Thread(s)

    Best way to go about custom physics engine? and pathfinding in it

    so it turns out using built in Box2D you must sacrifce pixel perfect collisions of clickteam. which is bad.
    i have some tutorials but i was wondering how others do it? what values do you use as must have per object?

    1. speed
    2. curX
    3. curY
    4. anglevel?
    5. curAngle
    etc etc etc

    should i have two speed or one speed? hmmmm.... also i am guessing most do away with built in 8 direction too.. so how do you handle positional data from differenmt objects?
    maybe it is easier to work with built in 8 direction for object choosing to cut down on resources... i woner if path finding work with built in 8 direction?

  2. #2

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Buffalo, NY
    28 Post(s)
    0 Thread(s)
    To be efficient, you should tailor your movement engine to only handle as few variables as you need. Since each object only has a limited number of variables, it is best to figure out what variables are absolutely essential first. Then decide what you want to sacrifice. Unless you are talking about mimicking all of the Box2D options, then I think you are going to be fighting an uphill battle.

    As an example, I made a custom "reflection" engine to have objects bounce off of one another. It uses variables for FloatX, FloatY, VectorX, VectorY, VectorSpeed, VectorDirectionAngle, Friction, CollisionRadius, VelocityX, VelocityY, ReflectVectorX, ReflectVectorY and ReflectVectorAngle just for the player object. It uses distance checks (circular collision) to detect collision with other objects.

    Can you elaborate on what specifically you want your engine to do?

  3. #3

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Perth, Australia
    16 Post(s)
    0 Thread(s)
    Can you post an example of the physics movements not giving you the kinds of collisions you want? it would be much easier to tweak/workaround the built in physics rather than create a whole new custom physics engine.

Similar Threads

  1. Replies: 3
    Last Post: 12th July 2015, 10:35 PM
  2. Physics Engine and Array Based Engine
    By rocketappliances in forum Fusion 2.5
    Replies: 11
    Last Post: 8th July 2015, 06:10 PM
  3. Replies: 5
    Last Post: 31st August 2014, 03:58 PM
  4. Looking for advice on custom pathfinding...
    By ezzypixel in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th March 2013, 08:04 PM
  5. Possible to make some simple object fall physics without physics engine?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd March 2012, 09:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts