Introduce mjPreContact, a minimal struct passed into the collision functions.
PiperOrigin-RevId: 918533795 Change-Id: I2b5af05c1479b25d5c2cfdc690321a26fce6ede6
This commit is contained in:
committed by
Copybara-Service
parent
53b3137a12
commit
7174d33f08
@@ -5140,6 +5140,42 @@ STRUCTS: Mapping[str, StructDecl] = dict([
|
||||
),
|
||||
),
|
||||
)),
|
||||
('mjPreContact',
|
||||
StructDecl(
|
||||
name='mjPreContact',
|
||||
declname='struct mjPreContact_',
|
||||
fields=(
|
||||
StructFieldDecl(
|
||||
name='dist',
|
||||
type=ValueType(name='mjtNum'),
|
||||
doc='',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='pos',
|
||||
type=ArrayType(
|
||||
inner_type=ValueType(name='mjtNum'),
|
||||
extents=(3,),
|
||||
),
|
||||
doc='',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='normal',
|
||||
type=ArrayType(
|
||||
inner_type=ValueType(name='mjtNum'),
|
||||
extents=(3,),
|
||||
),
|
||||
doc='contact normal of the collision',
|
||||
),
|
||||
StructFieldDecl(
|
||||
name='tangent',
|
||||
type=ArrayType(
|
||||
inner_type=ValueType(name='mjtNum'),
|
||||
extents=(3,),
|
||||
),
|
||||
doc='first tangent direction',
|
||||
),
|
||||
),
|
||||
)),
|
||||
('mjContact',
|
||||
StructDecl(
|
||||
name='mjContact',
|
||||
|
||||
Reference in New Issue
Block a user