mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
immobilize the avatar
This commit is contained in:
parent
7c37ba0572
commit
cf7a21d264
@ -118,6 +118,9 @@ class DistributedCartesianGrid(DistributedNode, CartesianGridBase):
|
|||||||
self.cr.doId2do[self.parentId].worldGrid.stopProcessVisibility(event=parentEvent)
|
self.cr.doId2do[self.parentId].worldGrid.stopProcessVisibility(event=parentEvent)
|
||||||
|
|
||||||
def processVisibility(self, task):
|
def processVisibility(self, task):
|
||||||
|
if self.visAvatar.immobilized:
|
||||||
|
return Task.cont
|
||||||
|
|
||||||
pos = self.visAvatar.getPos(self)
|
pos = self.visAvatar.getPos(self)
|
||||||
# Check to make sure our x and y are positive
|
# Check to make sure our x and y are positive
|
||||||
dx = self.cellWidth * self.gridSize * .5
|
dx = self.cellWidth * self.gridSize * .5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user