Skip to content

Commit

Permalink
ms2 - improve RagdollConstraint
Browse files Browse the repository at this point in the history
  • Loading branch information
HENDRIX-ZT2 committed Oct 16, 2023
1 parent 89501ba commit fb5f50c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions generated/formats/ms2/compounds/RagdollConstraint.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(self, context, arg=0, template=None, set_default=True):
self.z = name_type_map['RotationRange'](self.context, 0, None)

# radians
self.q = name_type_map['RotationRange'](self.context, 0, None)
self.plasticity = name_type_map['RotationRange'](self.context, 0, None)
if set_default:
self.set_defaults()

Expand All @@ -50,7 +50,7 @@ def _get_attribute_list(cls):
yield 'x', name_type_map['RotationRange'], (0, None), (False, None), (None, None)
yield 'y', name_type_map['RotationRange'], (0, None), (False, None), (None, None)
yield 'z', name_type_map['RotationRange'], (0, None), (False, None), (None, None)
yield 'q', name_type_map['RotationRange'], (0, None), (False, None), (None, None)
yield 'plasticity', name_type_map['RotationRange'], (0, None), (False, None), (None, None)

@classmethod
def _get_filtered_attribute_list(cls, instance, include_abstract=True):
Expand All @@ -62,4 +62,4 @@ def _get_filtered_attribute_list(cls, instance, include_abstract=True):
yield 'x', name_type_map['RotationRange'], (0, None), (False, None)
yield 'y', name_type_map['RotationRange'], (0, None), (False, None)
yield 'z', name_type_map['RotationRange'], (0, None), (False, None)
yield 'q', name_type_map['RotationRange'], (0, None), (False, None)
yield 'plasticity', name_type_map['RotationRange'], (0, None), (False, None)
5 changes: 4 additions & 1 deletion generated/formats/ms2/ms2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,13 @@
row 2 can match child joint rot row 1
<add name="rot" type="Matrix33" >all 3 rows are orthogonal to one another</add>
<add name="vec_b" type="Vector3" >normed</add>
tolerance around the rotation axes
<add name="x" type="RotationRange" >radians</add>
<add name="y" type="RotationRange" >radians</add>
<add name="z" type="RotationRange" >radians</add>
<add name="q" type="RotationRange" >radians</add>
apparently a rotation margin under which simulation is allowed to stop
unlike x, y, z above, this is directional, with min negative
<add name="plasticity" type="RotationRange" >radians</add>
</compound>

<compound name="UACJointFF">
Expand Down
5 changes: 4 additions & 1 deletion source/formats/ms2/ms2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -607,10 +607,13 @@
row 2 can match child joint rot row 1
<add name="rot" type="Matrix33" >all 3 rows are orthogonal to one another</add>
<add name="vec_b" type="Vector3" >normed</add>
tolerance around the rotation axes
<add name="x" type="RotationRange" >radians</add>
<add name="y" type="RotationRange" >radians</add>
<add name="z" type="RotationRange" >radians</add>
<add name="q" type="RotationRange" >radians</add>
apparently a rotation margin under which simulation is allowed to stop
unlike x, y, z above, this is directional, with min negative
<add name="plasticity" type="RotationRange" >radians</add>
</compound>

<compound name="UACJointFF">
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
05d8119dc - Sun Oct 15 16:15:28 2023 +0200
89501ba3f - Sun Oct 15 16:56:52 2023 +0200

0 comments on commit fb5f50c

Please sign in to comment.