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.
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
You can’t perform that action at this time.
0 commit comments