#how do i rotate an object like the one you grabbed
20 messages · Page 1 of 1 (latest)
Although now that I think about it that might rotate the object you’re holding since it rotates you
Maybe subtract the player rotation from it and set the turret to that
There’s a chip
You’ll have to have the entire turret clamped to an object in the center
And set rotation of that
Also important to note you have to configure makerpen objects to “can be modified with circuits” for it to work
What I'd do is this. Take the up vector of the trigger handle and the turret. Cross them. Then you also take the forward vector of both and cross it. Add those two together and you'll have a functional rotation.
Use a Quaternion Euler Angles to convert a Quaternion to a Vector
Set Rotation
Or Set Transform, depends on what you're doing
Are you using a 30hz?
If you wanna constantly move it, then you gotta use 30hz
The position is something you'll have to adjust yourself
I'd use Set Transform then since you wanna make it stay in one spot
Now you've lost me, is the position not working or what isn't?
Did you change to Set Transform? If so do you have a position inputted as well?
You need a position for Set Transform to work
Basically where you want the turret to be
You don't have a position. You need one for it to function