-
[Forge 1.12.2] Dot product between vectors keep decreasing when the player's vector is near the entity's vetor
And btw, it seems like if the mob goes nearer (for about 2 blocks or nearer), the tile entity won't hit the mob
-
[Forge 1.12.2] Dot product between vectors keep decreasing when the player's vector is near the entity's vetor
I'm currently working on a block that its tile entity can automatically hit the mob. My problem is when I use the Vec3d dot product check if the entity is in the block tile entity hitbox, I realized that the block tile entity won't hit if the mob goes nearer the block. Here is my code: I would greatly appreciated your help! Thanks in advance.
-
Where is worldRenderer.startDrawing()?
it is replaced with worldRenderer.begin(7, DefaultVertexFormats.POSITION_TEX)
-
[Forge 1.12.2] Calculate block hit vec
So far as I have known, there is a method called processRightClick in PlayerControllerMP class. But there is one parameter called hitVec, and I want to calculate it correctly, like this picture: I am wondering if there are anyways to do this. Thanks in advance!
-
[Forge 1.12.2] Some explainations about Tessellator and VertexBuffer?
And how do the method functions in it work ?
-
[Forge 1.12.2] Some explainations about Tessellator and VertexBuffer?
I have no ideas what is Tessellator and VertexBuffer are, and how do they work. I have read some on the Internet but they aren't specific enough for me to understand. I hope you guys could explain them specifically to me and give me some examples. Thanks in advance!
-
How to check if entity is behind, in front of, leftward or rightward other entity?
Is it like so: boolean behind = entity.getLookVec().dotProduct(otherEntity.getLookVec()) < -0.8D; ?
-
How to check if entity is behind, in front of, leftward or rightward other entity?
Thank you. Is it like this: entity.getPositionVector().dotProduct(otherEntity.getLookVec()) == -1 I want to check if the original entity is behind other entity
-
How to check if entity is behind, in front of, leftward or rightward other entity?
Vec3d direction = entity.getPositionVector().add(entity.getLookVec()); And after that, I wonder what to do next?
-
How to check if entity is behind, in front of, leftward or rightward other entity?
Vector? You mean Vec3d? And by the way how to check using vector and the entity's LookVec? (normalizing?)
-
How to check if entity is behind, in front of, leftward or rightward other entity?
I tried to compare two entities' posX and posZ whether it is equal, greater or less, but I don't know which of them will check if entity is behind, in front of, leftward or rightward other entity
-
How to check if entity is behind, in front of, leftward or rightward other entity?
I am wondering how to check if entity is behind, in front of, leftward or rightward other entity. Currently, I tried posX, posZ of two entities to check but it doesn't seem to be correct. Please help me. Thanks a lot!
-
How to check if there are any invisible entities in the specific entity position and not to attack the invisibles?
This is ...
-
How to check if there are any invisible entities in the specific entity position and not to attack the invisibles?
This happens again, seriously? No one replies
-
How to check if there are any invisible entities in the specific entity position and not to attack the invisibles?
Yes, they are. And I'm concerning about it.
IPS spam blocked by CleanTalk.