User Tag List

Results 1 to 8 of 8

Thread: Get reaction force/torque?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get reaction force/torque?

    I've been fooling around with CF2.5 and was curious if I would be able to make an engine similar to this one which I made with C++ and Box2D years ago. Having it in CF2.5 would be great as it'd then be much quicker to make an actual game with.

    In my engine, I used revolute joints (or possibly weld joints) to join together various objects. When the reaction force or torque went beyond a certain amount, I'd just break the joint, which resulted in a very nice destructible terrain effect.

    According to the Box2D documentation the functions needed to get these values are GetReactionForce() and GetReactionTorque(). Is there a way in CF2.5 to retrieve the value of these functions?

    If not, is this a planned feature?

    And if not, then I'm wondering, is there a way to tease a b2RevoluteJoint* out of CF2.5 via a C++ extension?

    Thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Please add this to the feature request list in bugbox.clickteam.com
    For the moment, I am getting rid of the bugs of the first version. I will, when things get calmer, make a pass on all the suggestions and implement them. It was very difficult for me when designing the Box2D features of Fusion 2.5 to plan all the things that user would want.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Dec 2012
    Location
    Copenhagen, Denmark
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Getting current force of an object would be awesome. In the meantime, is there a way to set a maximum applied force to an object?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    825
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Francois,
    OK, I've added this to the feature request list. It's awesome that you guys are supporting the software to this extent! The bug and feature request tracking is a wonderful idea.


    @helli, I was talking about the force on joints; however, I'd imagine you can get the force applied to an object by comparing its current velocity to last frame's velocity. Take this difference in velocity (i.e. acceleration in pixels per cycle^2) and multiply it by the mass of the object (F=ma) and that will give you force (in kilogram pixels per cycle^2).

    Limiting the acceleration of an object would have the same effect as limiting the force; just figure out the difference in velocity. If it's above a certain amount, clamp the velocity so it's as if less force/acceleration was applied to the object.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Dec 2012
    Location
    Copenhagen, Denmark
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure how I'd get the object's currenct velocity, can't find the option anywhere.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Dec 2012
    Location
    Copenhagen, Denmark
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know of a way to get an object's velocity?

  7. #7
    Clicker Fusion 2.5

    Join Date
    Jan 2014
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    African or European? Oh wait...

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export Module

    Join Date
    Dec 2012
    Location
    Copenhagen, Denmark
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What? ^

Similar Threads

  1. Clash Force
    By Jeff in forum iOS Released Games & Apps
    Replies: 18
    Last Post: 30th April 2012, 01:05 PM
  2. Bitmap push buttons reaction area
    By qenio in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 23rd April 2012, 04:02 PM
  3. Chain Reaction Problem - please help
    By cgbartek in forum File Archive
    Replies: 4
    Last Post: 29th September 2011, 08:59 PM
  4. Punch and reaction?
    By Zambaku in forum The Games Factory 2 - Technical Support
    Replies: 9
    Last Post: 1st March 2009, 06:29 PM

Tags for this Thread

Posting Permissions

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