Skip to content

Instantly share code, notes, and snippets.

View wildermuthn's full-sized avatar

Nate Wildermuth wildermuthn

View GitHub Profile
@wildermuthn
wildermuthn / rotating-box.js
Last active March 26, 2016 18:19 — forked from nakosung/rotating-box.js
unreal.js rotating box
// Loads into Unreal, renders accordingly.
GWorld.GetAllActorsOfClass(Light).OutActors.map(l => l.DestroyActor())
function light(color) {
let actor = new PointLight(GWorld)
actor.LightComponent.SetMobility('Movable')
actor.LightComponent.Intensity = 1000
actor.LightComponent.SetLightColor(color)
return actor