Results 1 to 3 of 3

Thread: joints in scripting

  1. #1

    Lightbulb joints in scripting

    Maybe I just haven't seen it, but we should really be able to use joints with scripting.

    Pretty much everything you'd want from joints in scripting would be nice. Making them, breaking them, changing their properties, etc

  2. #2
    Join Date
    Feb 2017
    Posts
    178
    Definitely seconded, even though this should be in the scripting suggestions forum.

    just a few thoughts...

    object getJointParent() {returns self's joint parent}
    index setJointParent(Object obj, Table params) {sets obj as parent of self with joint parameters params}
    table getJointChildren() {returns table of objects and joint parameters}
    int addJointChild(Object obj, Table params) {returns index of object}
    void removeJointChild(index)
    int getChildIndex(obj) {returns index of obj in self's child list}
    int getJointIndex() {returns index of self in parent's child list}
    void setJointParams(index, params) {merge contents of params into joint parameters for obj at index}
    Table getJointParams(index) {returns table of joint parameters of child obj at index}

  3. #3
    Moved to Scripting suggestions.

Similar Threads

  1. [ADDED] [v7.8] Joints not being severed
    By Bakersfield in forum Suggestions
    Replies: 1
    Last Post: 08-06-2016, 01:18 AM
  2. [SOLVED] Joints and Savestates
    By Bakersfield in forum Bug Reports
    Replies: 4
    Last Post: 08-05-2016, 10:58 PM
  3. [ADDED] [v7.8] Change-State working with Joints
    By Cluny in forum Suggestions
    Replies: 2
    Last Post: 08-05-2016, 04:56 PM
  4. Easy way to remove joints
    By Mark in forum Suggestions
    Replies: 0
    Last Post: 07-22-2016, 09:21 AM
  5. [UPDATE] Update v4.2 New features - Joints and Physics!
    By Kimiko in forum Announcements
    Replies: 6
    Last Post: 03-24-2015, 02:21 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
  •