MeshDrawer.explosion Distance Parameter is Inoperative
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Undecided
|
rdb |
Bug Description
At least on Windows 7 and XP using Panda3D versions from 1.8.0 to 1.9.3, the distance parameter for the explosion function of MeshDrawer does nothing. This defeats the purpose of explosion() since you cannot animate the particles radiating out from the center.
Forum Topic: http://
Example Code:
from direct.
from panda3d.core import MeshDrawer, NodePath
class Test(ShowBase):
def __init__(self):
self.drawer = MeshDrawer()
self.time = 0
def update_task(self, task):
self.time += globalClock.
# Test that explosion particles expand in all directions by
# increasing distance parameter over elapsed (delta) time.
# At least on Windows 7 and XP they will remain at the center
# regardless of what value the distance parameter is set to.
return task.cont
test = Test()
test.run()
description: | updated |
Changed in panda3d: | |
assignee: | nobody → rdb (rdb) |
status: | New → In Progress |
tags: |
added: windows removed: particle |
Changed in panda3d: | |
milestone: | none → 1.9.4 |
status: | Fix Committed → Fix Released |
This was a Windows-only issue. The random numbers that were generated were not in the correct range.
Thank you for reporting this issue. I have checked in a fix now.