New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add method for Node #6317
Labels
Comments
mvaligursky
added
performance
Relating to load times or frame rate
area: graphics
Graphics related issue
labels
Apr 30, 2024
I think we have an equivalent, or at least it is similar: entity.getWorldTransform().setTRS(position, rotation, pc.Vec3.ONE); |
A much bigger optimization many miss is to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Now there are 2 methods available, setPosition and setRotation, I suggest adding 1 more method setPositionAndRotation.
public setPositionAndRotation(position: Readonly<pc.Vec3>, rotation: Readonly<pc.Quat>): void;
The text was updated successfully, but these errors were encountered: