Add universal two-point effect system to Lua API#9
Draft
Conversation
- New TwoPointEffect.h/cpp: effect data structure and controller - Renderer: PrepareTwoPointEffects() for rendering segment quads - Lua API: EmitTwoPointEffect(origin, target, options) function - Support for: color gradients, sag, noise, wave, sway, pulse, flicker, twist, cone angle, glow, dashed/segmented rendering - Integrated into game update loop and render pipeline Co-authored-by: TrainWrack <120750885+TrainWrack@users.noreply.github.com>
Co-authored-by: TrainWrack <120750885+TrainWrack@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add twoPoint system functionality
Add universal two-point effect system to Lua API
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
CHANGELOG.mdfile on the branch/fork (if it is an internal change, this is not needed).Links to issue(s) this pull request concerns (if applicable)
N/A
Pull request description
Adds
TEN.Effects.EmitTwoPointEffect(origin, target, options)— a parameter-driven visual effect system for rendering customizable effects between two 3D points. Different option combinations produce ropes, beams, lasers, chains, etc.New files
Game/effects/TwoPointEffect.h/cpp—TwoPointEffectDatastruct (all spec'd parameters),TwoPointEffectController(spawn with 128-pool cap, per-frame life/opacity decay, animation time accumulation, expired effect cleanup)Engine integration
Game/control/control.cpp—Update()andClear()calls in game loopRenderer/Renderer.h+RendererDrawEffect.cpp—PrepareTwoPointEffects()generates camera-facing quads per segment with interpolation supportRenderer/RendererDraw.cpp— Hooked into render preparation pipelineTombEngine.vcxproj— New files registeredLua API
EffectsFunctions.cpp—EmitTwoPointEffectparses asol::tableoptions arg with all parameters clamped to spec rangesReservedScriptNames.h—ScriptReserved_EmitTwoPointEffectSupported parameters
color,colorEnd,width,widthEnd,life,segments,opacity,blendModesag,sagDirection,tension,noise,noiseFrequency,twist,coneAnglesway,swaySpeed,swayAxis,pulse,pulseSpeed,flicker,flickerSpeed,scrollSpeed,waveAmplitude,waveFrequency,waveSpeedglow,glowIntensity,glowWidth,glowColorsegmented,segmentSize,segmentGap,dashed,dashLength,dashGap,dashOffsetExample usage
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.