Commit Graph

135 Commits

Author SHA1 Message Date
rdb 79ba760319 direct: Backport assorted fixes from master 2023-02-24 22:20:01 +01:00
rdb 127798437f particles: Fix missing import in ParticleFloorTest 2023-02-20 18:04:22 +01:00
rdb a6580f5dd3 physics: Fix GlobalForceGroup 2020-12-30 23:57:43 +01:00
rdb f1a171bfd8 particles: Fix writing representation of AngularVectorForce 2020-12-30 23:57:27 +01:00
rdb 8178fb21f3 direct: don't rely on vfs being present in builtins 2020-08-11 09:40:34 +02:00
Thaumaturge c0daa75353 particles: add parameter to delay particle birth in soft_start()
Also adds a get_tics_since_birth() getter.

This feature can be used to synchronize different particle effects.

Closes #769
2019-11-10 20:33:45 +01:00
rdb f47fd8875c particles: add snake-case aliases to Python particle classes 2019-11-10 20:26:45 +01:00
rdb f149fb4ab0 direct: big formatting changes for the benefit of API reference
Part of the effort to move the API reference to Sphinx, see panda3d/panda3d-docs#21
2019-10-29 20:43:41 +01:00
tc 33d11dba27 ParticlePanel: fixed an issue that prevented saving with Python 3
Since in Python 3 `str == bytes` no longer holds true, I modified
the source to write a text file, which it actually is, instead of a
binary file.

Closes #553
Fixes #543
2019-02-08 15:46:52 +01:00
John Cote 2627c433d6 particles: Import SpriteAnim in Particles.py
Fixes #544
Closes #545
2019-01-31 00:06:34 +01:00
rdb d576c6b638 Improvements to generated API docs, especially in direct tree.
Also add an entry point for pfreeze.
2017-05-24 13:30:21 +02:00
rdb 23bf9ea5c7 The direct tree is now valid Python 2 *and* 3 2016-03-28 22:33:30 +02:00
rdb 58837c0f4a Fix particle sample and tkinter in Python 3 2016-03-22 11:31:51 +01:00
mfwass f8837999ed Cleanup trailing whitespace 2015-12-13 10:08:41 -05:00
rdb 32367fcbdc Fix various import issues in the direct tree 2015-12-06 22:36:05 +01:00
rdb db3ab953e4 Remove ppremake, genPyCode, and all hacks created to support them 2015-11-09 19:06:49 +01:00
rdb cbb3969017 Merge remote-tracking branch 'origin/release/1.9.x' 2015-08-23 17:03:55 +02:00
rdb eecded05bd Fix broken imports in ParticleTest 2015-08-20 21:59:12 +02:00
rdb d9342043b0 Deprecate pandac.PandaModules and genPyCode, move extensions to panda3d/, clean up imports and deprecated behaviour 2015-06-28 13:55:31 +02:00
frainfreeze 07e73672db updated direct/particle to import from panda3d.physics 2015-01-12 21:41:36 +01:00
rdb 51dffd0f5a Commit patch by cfsworks to clean up use of exec() and eval() 2014-04-16 13:09:12 +00:00
rdb 3403c8748e Fix use of outdated exec and repr syntax 2013-12-17 18:05:45 +00:00
rdb 3aaa57181d suggested fix by forum user JörnS 2013-05-07 11:12:27 +00:00
rdb ac1223d0da Ditch stuff like has_key and backticks 2010-03-19 10:32:09 +00:00
Przemyslaw Iwanowski 3e91321b54 crash fix 2009-12-16 22:54:49 +00:00
David Rose 4456d45f62 defer importing ParticleSystemManager etc. until base.enableParticles() is called 2009-05-01 20:10:18 +00:00
David Rose c69c8680e8 asList() etc. no longer needed 2008-11-12 20:37:20 +00:00
Josh Wilson 1250458e18 overriding NodePath.getName() 2008-10-13 20:37:29 +00:00
David Rose ddf501b588 loadModelOnce -> loadModel 2008-08-28 19:24:59 +00:00
Josh Wilson 9fcac8b39c replacing particleEffect.cleanup() with particleEffect.disable() in ParticleInterval.cleanup(). This should allow us to reuse pooled effects in subsequent different particle intervals. Also, printing a more helpful error message when trying to use an already cleaned up ParticleEffect 2008-07-10 20:09:00 +00:00
Asad M. Zaman 558999a774 from prezmek: 2007-08-10 02:41:20 +00:00
Darren Ranalli cd313b4cbe don't hide error during particle file load 2007-05-08 19:32:11 +00:00
Greg Wiatroski b39ca2fec5 Protect against crash on disable 2007-04-03 21:47:12 +00:00
Josh Wilson 7c37ba0572 added ArcEmitter 2006-12-06 03:07:20 +00:00
Josh Wilson 46f04f18b2 default textures from DMODELS now instead of TTMODELS 2006-07-26 21:57:23 +00:00
Josh Wilson 4fe44aeed8 added ability to 'soft start' and 'soft stop' a particle effect 2006-07-25 01:43:04 +00:00
Josh Wilson a886cef943 more precise import statement 2006-07-25 01:42:10 +00:00
Josh Wilson 42b2b2d254 accelerate only on postive dt 2006-07-20 15:25:02 +00:00
Josh Wilson 88e3d2c21d added accelerate and clearToInitial 2006-07-20 15:24:34 +00:00
Josh Wilson 6b04e6e4f4 bugfix on setAnimateFramesRate() 2006-07-13 23:42:36 +00:00
Josh Wilson ee6a0c7382 added accelerate() to allow the particle system to be 'jumped' forward without exploding 2006-07-13 00:33:30 +00:00
Josh Wilson f1a5b2058d added getPoolSizeRanges(), a utility function to estimate the ideal particle system size 2006-06-29 19:18:43 +00:00
Josh Wilson fc0a1e4cb1 write colorInterpolationSegment isModulated() status to ptf on save 2006-06-14 18:34:28 +00:00
Josh Wilson 56e6945911 vector mask code is now printed to an exported ptf file 2006-06-14 02:02:11 +00:00
Dave Schuyler a2aa9486d1 formatting 2006-03-17 23:47:12 +00:00
David Rose 7659b3f63b strip out MS-DOS linefeeds 2006-01-30 20:59:22 +00:00
David Rose 9c5c9d72b5 make auto_unwrap a required parameter, remove use_vfs 2006-01-26 01:30:56 +00:00
Dave Schuyler a76263194c rough change to reflect changes in angular vector force 2006-01-21 01:53:55 +00:00
Dave Schuyler 86f4c2e68e remove extra paren from assert 2006-01-09 22:18:28 +00:00
Dave Schuyler 8900f25533 PandaObject to DirectObject 2005-12-20 22:51:18 +00:00