It looks like you're new here. If you want to get involved, click one of these buttons!
Maybe it just doesn’t fit my brain holes somehow, but the “viewers” system for Craft cameras has always confounded me.
What I want is a single object that is (or acts like) a camera, entity, and viewer all at once, and that’s what I’ve tried to make here.
You first make a camera/viewer/entity thing by calling makeCameraViewerEntityThing(scene)
, and then you apply a “rig” function to it.
This project makes rig functions out of the two viewers in the builtin Cameras project, so there’s a first-person-view rig and a orbit-view rig.
One advantage you can see from this project is that it’s really easy to change rigs on the fly.
Comments
Update:
Thanks again
Updated to put almost all custom properties and functions inside an
entity.rig
table.