File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
programming/physics/bullet Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,14 @@ collision groups the object belongs to.
137
137
138
138
.. code-block :: python
139
139
140
- shape = shape = BulletBoxShape(Vec3(0.5 , 0.5 , 0.5 ))
140
+ shape = BulletBoxShape(Vec3(0.5 , 0.5 , 0.5 ))
141
141
142
142
body = BulletRigidBodyNode(' Body' )
143
143
body.addShape(shape)
144
144
145
145
world.attachRigidBody(body)
146
146
147
- bodyNP = self .worldNP .attachNewNode(body)
147
+ bodyNP = render .attachNewNode(body)
148
148
bodyNP.setPos(0 , 0 , - 1 )
149
149
150
150
# Set it to be a part of group 0
@@ -174,7 +174,7 @@ following line is an alternate way to set the collide mask:
174
174
175
175
.. code-block :: python
176
176
177
- bodyNP.node(). setIntoCollideMask(mask)
177
+ bodyNP.setIntoCollideMask(mask)
178
178
179
179
.. only :: cpp
180
180
You can’t perform that action at this time.
0 commit comments