Skip to content

Commit 836b1d2

Browse files
committed
Fix typo on 'programming/physics/bullet/collision-filtering.rst'
1 parent 401fcb3 commit 836b1d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

programming/physics/bullet/collision-filtering.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ collision groups the object belongs to.
137137

138138
.. code-block:: python
139139
140-
shape = shape = BulletBoxShape(Vec3(0.5, 0.5, 0.5))
140+
shape = BulletBoxShape(Vec3(0.5, 0.5, 0.5))
141141
142142
body = BulletRigidBodyNode('Body')
143143
body.addShape(shape)
144144
145145
world.attachRigidBody(body)
146146
147-
bodyNP = self.worldNP.attachNewNode(body)
147+
bodyNP = render.attachNewNode(body)
148148
bodyNP.setPos(0, 0, -1)
149149
150150
# Set it to be a part of group 0
@@ -174,7 +174,7 @@ following line is an alternate way to set the collide mask:
174174

175175
.. code-block:: python
176176
177-
bodyNP.node().setIntoCollideMask(mask)
177+
bodyNP.setIntoCollideMask(mask)
178178
179179
.. only:: cpp
180180

0 commit comments

Comments
 (0)