Comments (15)
Interesting, the method is used internally (in combination with the action controller) and works there perfectly fine from my testing 🤔
from npc-lib.
Maybe I'm doing it wrong. How can I properly rotate the npc and when should I?
from npc-lib.
from npc-lib.
I have the same issue
from npc-lib.
Line 128 is setting the position but still nothing.
from npc-lib.
The lookAt
method returns a prepared packet, you need to send it to the target player(s), using .schedule
from npc-lib.
This also does not work. "/
https://streamable.com/273clz
from npc-lib.
Can you print out the result of bossNPC.getPosition()
and walk to that position? That should be where the npc looks to...
from npc-lib.
from npc-lib.
Based on the printed values, it looks correct? (maybe I'm just misunderstanding the values tho 😂 )
from npc-lib.
Npcs are facing yaw 0. Not 90 as expected.
from npc-lib.
The yaw and pitch you're providing to the method are not taken into account. The method calculates the yaw and pitch to look at based on the position to look at (x, y, z).
from npc-lib.
Is there a way to change just rotation? I want to just change the rotation of the npc.
from npc-lib.
Might be a good helper method to add, until then you can use platform.packetFactory().createRotationPacket(yaw, pitch).schedule(...)
from npc-lib.
Ok, that works! Thanks!
from npc-lib.
Related Issues (20)
- Animations support? HOT 2
- Packet instance error HOT 4
- Exmape to create NPCS HOT 1
- Dependency files size HOT 3
- Can't get skins to work HOT 1
- Create README HOT 1
- How to remove nickname? HOT 1
- How to remove created NPC? HOT 1
- NPC won't look at player until player moves HOT 4
- New event api requires java 17 HOT 2
- Proper publishing HOT 7
- Don't shade packetevents HOT 3
- 1.20.2 avaible? HOT 1
- Plugin not load HOT 4
- 1.20 support? HOT 12
- 1.20 error HOT 4
- Packet NullPointerException HOT 3
- Unable to shadow v3 into the jar HOT 5
- 1.19 Support? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from npc-lib.