Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.4] Particle which doesn't face the player.
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Hendoor64

[1.16.4] Particle which doesn't face the player.

By Hendoor64, December 3, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Hendoor64    0

Hendoor64

Hendoor64    0

  • Tree Puncher
  • Hendoor64
  • Members
  • 0
  • 5 posts
Posted December 3, 2020

Hi! I wanted to create a rotating circle visual which hovers in the air, and I figured a particle would have less overhead than an entity. By default, particles rotate their quad to face the player automatically, but I want mine to face straight up regardless of the player's position. How can I tell the particle (or whatever renders it) not to face the player?

 

P.S.

I'm also struggling to rotate my particle, there doesn't seem to be a field for its orientation, only its position. Any ideas?

 

Thanks!

  • Quote

Share this post


Link to post
Share on other sites

TheGreyGhost    819

TheGreyGhost

TheGreyGhost    819

  • Reality Controller
  • TheGreyGhost
  • Members
  • 819
  • 3280 posts
Posted December 4, 2020

Howdy

Have a look in TexturedParticle::renderParticle.  You will need to understand some vector rotation math (Quaternions) but with a bit of experimentation you should be able to figure it out.

 

Some more information on particles here in case you need it:

https://github.com/TheGreyGhost/MinecraftByExample/tree/master/src/main/java/minecraftbyexample/mbe50_particle

 

Cheers

  TGG

 

 

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Silivek
      Mod won't load when in dev environment

      By Silivek · Posted 14 minutes ago

      I ran it using the runClient configuration generated by  gradlew genEclipseRuns in the command line.
    • kiou.23
      Mod won't load when in dev environment

      By kiou.23 · Posted 17 minutes ago

      That's odd, I couldn't find anything wrong with the code. could you describe exactly what steps you are taking to run the mod?   also: your group in build.gradle and your main path doesn't follow the convention, seeing that you have a github, you could use that http://maven.apache.org/guides/mini/guide-naming-conventions.html   EDIT: Ideally I would pull the repo to my machine and try running the mod myself, but my weak computer takes 4 hours to decompile mc, So... sorry I can't do that
    • cadbane86140
      The Dream Skin Invasion!

      By cadbane86140 · Posted 19 minutes ago

      Hello There! This is a very weird but something worth documenting video on my channel, so late last night I see the usual stuff trending on twitter but decide to go into the server and well this happened... Our reactions are hilarious and I know you guys are gonna love it! I hope you all enjoy this video and if you did don't forget to like and sub for more!  
    • kiou.23
      Crafting Damage (1.16)

      By kiou.23 · Posted 23 minutes ago

      you don't need the existing damage, you can call ItemStack#damage() on the stack
    • Silivek
      Mod won't load when in dev environment

      By Silivek · Posted 24 minutes ago

      Sorry for the long wait. Yes, I have refreshed it and restarted eclipse.
  • Topics

    • Silivek
      6
      Mod won't load when in dev environment

      By Silivek
      Started Thursday at 05:46 PM

    • cadbane86140
      0
      The Dream Skin Invasion!

      By cadbane86140
      Started 19 minutes ago

    • DeadZone
      4
      Crafting Damage (1.16)

      By DeadZone
      Started 2 hours ago

    • GermanBucket
      1
      IntelliJ doesn't include resources folder while debugging

      By GermanBucket
      Started 34 minutes ago

    • Arthurmeade12
      7
      Error Conecting to My Minecraft Server

      By Arthurmeade12
      Started Saturday at 11:05 PM

  • Who's Online (See full list)

    • Silivek
    • Extrodonary
    • HowBoutNo
    • Draco18s
    • kiou.23
    • cadbane86140
    • WildHeart
    • LeiteDesnatado
    • Woodside
    • bakewastaken
    • MerlinTheAlmighty
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.4] Particle which doesn't face the player.
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community