Announcement

Collapse

Forum Rules

  • No flaming or derogatory remarks, directly or through insinuation.
  • No discussion, sharing or referencing illegal software such as hacks, keygen, cracks and pirated software.
  • No offensive contents, including but not limited to, racism, gore or pornography.
  • No excessive spam/meme, i.e. copious one liners in a short period of time, typing with all caps or posting meme responses (text/image).
  • No trolling, including but not limited to, flame incitation, user provocation or false information distribution.
  • No link spamming or signature advertisements for content not specific to Dota 2.
  • No Dota 2 key requests, sell, trade etc.
  • You may not create multiple accounts for any purpose, including ban evasion, unless expressly permitted by a moderator.

  • Please search before posting. One thread per issue. Do not create another thread if there is an existing one already.
  • Before posting anything, make sure you check out all sticky threads (e.g., this). Do not create new threads about closed ones.
  • It is extremely important that you post in correct forum section.

  • Balance discussion only in Misc.
  • All art related (such as hero model) feedbacks go to Art Feedback Forum.
  • All matchmaking feedback should go here: Matchmaking Feedback
  • All report/low priority issues should go here: Commend/Report/Ban Feedback
  • No specific workshop item feedback. These should go to workshop page of that item.
  • When posting in non-bugs section (such as this), use [Bugs], [Discussion] or [Suggestion] prefix in your thread name.



In case you object some action by a moderator, please contact him directly through PM and explain your concerns politely. If you are still unable to resolve the issue, contact an administrator. Do not drag these issues in public.



All rules are meant to augment common sense, please use them when not conflicted with aforementioned policies.
See more
See less

CScriptParticleManager set position + velocity

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • CScriptParticleManager set position + velocity

    Is it possible to set (at runtime) the current position and velocity of the particle? (ofc i am talking about using the control points SetParticleControl) In general i understand the concept and the most works fine. But for now i wasn't be able explicitly set the position AND save/set the velocity of the particle (i am using just a test model, doesn't have anything to do with emission). the scenarios i have are the following:
    1) i can do everything, except setting explicit position (global space)
    2) i can do everything, and even kind a offset particle using the Operator - Movement lock to control point, it does keep the accumulated velocity (for me it's a weird behaviour) so i can set the global space position but the local space is saved, so it only offsets. (this is potentialy usable with stupid compensation stuff etc, but it's the last thing what i want to do cause it will introduce diverge)
    3) same as the second but i can use Operator - Movement set to control point, this way it works as it should, BUT the velocity is completely gone.

    so how can i set the position and velocity of a running particle?

  • #2
    ok. so the actuall problem is what you can't reset the offset (at least i couldn't achive this) which was made by the velocity (travelled in space).
    if there would be a native function (CScriptParticleManager method) to reset particle offset, it would resolve this issue. and overall imo particle api could be a bit richer... (considering the complexity of particle system itself)

    Comment

    Working...
    X