User contributions for Anders

From Crumbled World Wiki
A user with 200 edits. Account created on 5 July 2025.
Search for contributionsExpandCollapse
⧼contribs-top⧽
⧼contribs-date⧽
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)

5 July 2025

  • 13:3813:38, 5 July 2025 diff hist +2,245 N Vec2iCreated page with "{{:Vec2iExampleCode}} ==Members== {| class="wikitable" !|type !|variable !|description |- |float |x | |- |float |y | |- |} ==Constructor== {| class="wikitable" !|function !|description |- |Vec2i(float x, float y) | |- |Vec2i(Vec2i vactor) | |- |Vec2i() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |float |dot() |Returns the dot product of this vec with itself. |- |float |dot(Vec2i v..."
  • 13:3813:38, 5 July 2025 diff hist +540 N TableCreated page with "{{:tableExampleCode}} ==Class name== {| class="wikitable" !|table |- |} ==Static functions== {| class="wikitable" !|return !|function !|description |- | |sort(table aTable) | |- | |sort(table aTable, nil sortFunction) | |- | |remove(table aTable, number index) |Remove a index from an array, and shift down remaining integer keys. |- | |table:insert..." current
  • 13:3813:38, 5 July 2025 diff hist +2,327 N Vec4Created page with "{{:Vec4ExampleCode}} ==Members== {| class="wikitable" !|type !|variable !|description |- |float |x | |- |float |y | |- |float |z | |- |float |w | |- |} ==Constructor== {| class="wikitable" !|function !|description |- |Vec4(float x, float y, float z, float w) | |- |Vec4(float value) | |- |Vec4(Vec4 vector) | |- |Vec4(Vec3 vector, float w) | |- |Vec4(Vec2 vector, float z, float w) | |- |Vec4() | |- |} ==Functions== {| class="wikitab..." current
  • 13:3813:38, 5 July 2025 diff hist +2,457 N Vec2Created page with "{{:Vec2ExampleCode}} ==Example== <syntaxhighlight lang="lua"> local vec = Vec2(2,9.2) local anotherVec = vec + (Vec2(-2,-2) * 2) </syntaxhighlight> ==Members== {| class="wikitable" !|type !|variable !|description |- |float |x | |- |float |y | |- |} ==Constructor== {| class="wikitable" !|function !|description |- |Vec2(float x, float y) | |- |Vec2(float value) | |- |Vec2(Vec2 vector) | |- |Vec2() | |- |} ==Functions== {| class="wikitable" !|return !|function !|des..."
  • 13:3713:37, 5 July 2025 diff hist +594 N SphereCreated page with "{{:SphereExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Sphere(Vec3 position, float radius) | |- |Sphere() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getPosition() |Returns the Sphere center position. |- |float |getRadius() |Returns the Sphere radius. |- | |setPosition(Vec3 position) |Set the Sph..." current
  • 13:3713:37, 5 July 2025 diff hist +679 N RandomCreated page with "{{:RandomExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Random(number seed) | |- |Random() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |setSeed(int seed) |changes the seed. One seed will give the same output between different computers. |-turns a random number from 0 to max. |- |int |range(int low, int high) |Returns a random number b..." current
  • 13:3713:37, 5 July 2025 diff hist +1,773 N QuatCreated page with "{{:QuatExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Quat(float x, float y, float z, float w) | |- |Quat(Vec3 axis, float degrees) | |- |Quat() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |createFromRotationMatrix(Matrix mat) |. |- | |createMatrix(Matrix mat) |. |- | |reset() |Clear quat. |..." current
  • 13:3713:37, 5 July 2025 diff hist +2,861 N MatrixCreated page with "{{:MatrixExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Matrix(float* x) |x is array of length 16 |- |Matrix(Vec3 position) | |- |Matrix(Matrix mat) | |- |Matrix() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getRightVec() |Returns the Right Vector. |- |Vec3 |getUpVec() |Returns the Up Vector. |- |Vec3 |[[Matrix:getAtVec()|getAtVec]..." current
  • 13:3713:37, 5 July 2025 diff hist +6,463 N MathCreated page with "{{:mathExampleCode}} ==Class name== {| class="wikitable" !|math |- |} ==Members== {| class="wikitable" !|type !|variable !|description |- |number |huge |The value HUGE_VAL, a value larger than or equal to any other numerical value. |- |number |pi |pi = 3.14159265359 |- |} ==Static functions== {| class="wikitable" !|return !|function !|description |- | |randomSetSeed(int seed) |set seed for random generator. The seed will be true for t..." current
  • 13:3613:36, 5 July 2025 diff hist +827 N Line3DCreated page with "{{:Line3DExampleCode}} ==Members== {| class="wikitable" !|type !|variable !|description |- |Vec3 |startPos | |- |Vec3 |endPos | |- |} ==Constructor== {| class="wikitable" !|function !|description |- |Line3D(Vec3 startPos, Vec3 endPos) | |- |Line3D(Vec3 startPos, Vec3 atVec, float length) | |- |Line3D() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |float |length() |Returns the line length...." current
  • 13:3613:36, 5 July 2025 diff hist +827 N Line2DCreated page with "{{:Line2DExampleCode}} ==Members== {| class="wikitable" !|type !|variable !|description |- |Vec2 |startPos | |- |Vec2 |endPos | |- |} ==Constructor== {| class="wikitable" !|function !|description |- |Line2D(Vec2 startPos, Vec2 endPos) | |- |Line2D(Vec2 startPos, Vec2 atVec, float length) | |- |Line2D() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |float |length() |Returns the line length...." current
  • 13:3613:36, 5 July 2025 diff hist +696 N FrustrumCreated page with "{{:SphereExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Frustrum(Vec3 cameraPos, Vec3 corner1, Vec3 corner2, Vec3 corner3, Vec3 corner4) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |bool |sphereInFrustum(Sphere aSphere) | |- |float |sphereInFrustumDist(Sphere aSphere) | |- |int |[..." current
  • 13:3613:36, 5 July 2025 diff hist +3,376 N CollisionCreated page with "{{:CollisionExampleCode}} ==Static functions== {| class="wikitable" !|return !|function !|description |- |bool, Vec2 |lineSegmentLineSegmentIntersection(Line2D line1, Line2D line2) |Return true if the two segmented line intersect each other. if return true second output is the intersection position. |- |float |linePointLength2(L..." current
  • 13:3513:35, 5 July 2025 diff hist +1,136 N BoxCreated page with "{{:BoxExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |Box(Vec3 minPos, Vec3 maxPos) | |- |Box(Sphere sphere) | |- |Box() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getMinPos() |Returns the box minPos. |- |Vec3 |getMaxPos() |Returns the box maxPos. |- |Vec3 |getCenterPosition() |Returns the box center po..." current
  • 13:0713:07, 5 July 2025 diff hist +171 SoundNodeNo edit summary current
  • 13:0713:07, 5 July 2025 diff hist +1,079 N SoundSourceCreated page with "{{:SoundNodeExampleCode}} ==Inheritance== SceneNode ==Constructor== {| class="wikitable" !|function !|description |- |SoundNode() | |- |SoundNode(string fileName) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |play(float soundLevel, bool repeat) |Play a sound. soundLevel [0,2] |- | |play(float soundLevel, boo..." current
  • 13:0613:06, 5 July 2025 diff hist +406 N UnstackableListCreated page with "{{:UnstackableListExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |UnstackableList() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |addEffect(float power, float timer) | |- |float |getMaxPower() | |- |int |size() | |- |}" current
  • 13:0613:06, 5 July 2025 diff hist +1,298 N ToolManagerCreated page with "{{:ToolManagerExampleCode}} ==Functions== {| class="wikitable" !|return !|function !|description |- | |setIslanduilderTool() | |- | |setIslandRiseTool() | |- | |setIslandLowerTool() | |- | |setIslandSmothTool() | |- | |setIslandElevateTool() | |- | |ToolManager:setIslandColorTool()|se..." current
  • 13:0613:06, 5 July 2025 diff hist +403 N PhysicNodeCreated page with "{{:PhysicNodeExampleCode}} ==Inheritance== SceneNode ==Functions== {| class="wikitable" !|return !|function !|description |- | |addRigidBody(Mesh mesh, Vec3 velocity, Vec3 Rotation, float rotationSpeed, float timeToLive) |Add a Mesh to be handled by the Very Basic Physic |- |}"
  • 13:0613:06, 5 July 2025 diff hist +1,079 N SoundNodeCreated page with "{{:SoundNodeExampleCode}} ==Inheritance== SceneNode ==Constructor== {| class="wikitable" !|function !|description |- |SoundNode() | |- |SoundNode(string fileName) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |play(float soundLevel, bool repeat) |Play a sound. soundLevel [0,2] |- | |play(float soundLevel, boo..."
  • 13:0413:04, 5 July 2025 diff hist +243 N SceneNodeExampleCodeCreated page with "==Example Code== <syntaxhighlight lang="lua"> function done() --Do stuff here end --Run exportScript.lua in a background thread. local worker = Worker("MapEditor/exportScript.lua",false) worker:addCallbackFinished(done) </syntaxhighlight>" current
  • 13:0413:04, 5 July 2025 diff hist +12,125 N SceneNodeCreated page with "{{:SceneNodeExampleCode}} ==Static functions== {| class="wikitable" !|return !|function !|description |- |SceneNode |new() |Create a new Instance of the the SceneNode |- |SceneNode |new(string name) |Create a new Instance of the the SceneNode |- |SceneNode |newNil() |return a null pointer of type SceneNode |- |} ==Functions== {| class="wikitable" !|return !|function !|description..."
  • 13:0413:04, 5 July 2025 diff hist +387 N SplittedMeshCreated page with "{{:SplittedMeshExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |SplittedMesh() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getVelocity() |Returns velocity of the mesh. |- |Vec3 |getCenterPos() |Returns the centerPosition of the mesh |- |}" current
  • 13:0313:03, 5 July 2025 diff hist +341 N RootNodeCreated page with "{{:RootNodeExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |RootNode |new() |Create a new Instance of the the RootNode |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |update() | |- |}" current
  • 13:0313:03, 5 July 2025 diff hist +2,713 N RenderNodeCreated page with "{{:IslandExampleCode}} ==Inheritance== SceneNode ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec4 |getColor() |Get color. |- |Shader |getShader() |Get shader. |- |Shader |getShadowShader() |Get shadow shader. |- |int |getRenderLevel() |Get render level. |- |Texture |RenderNode:getTexture(Shader shader,..." current
  • 13:0313:03, 5 July 2025 diff hist +742 N PlayerNodeCreated page with "{{:PlayerNodeExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |PlayerNode |new() |Create a new Instance of the the PlayerNode |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |int |getClientId() |Return the clientId who own this playerNode, on shared maps and single player this returns 0 as the clientId. when no o..." current
  • 13:0213:02, 5 July 2025 diff hist +627 N PointLightModelCreated page with "{{:PointLightModelExampleCode}} ==Inheritance== PointLight ==Static functions== {| class="wikitable" !|return !|function !|description |- |PointLightModel |new() |Create a new Instance of the the PointLightModel |- |PointLightModel |new(Vec3 color, float direction) |Create a new Instance of the the PointLightModel |- |PointLightModel |PointLightModel:new(Vec3 localPosit..." current
  • 13:0213:02, 5 July 2025 diff hist +2,594 N PointLightCreated page with "{{:PointLightExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |PointLight |new() |Create a new Instance of the the PointLight |- |PointLight |new(Vec3 color, float radius) |Create a new Instance of the the PointLight |- |PointLight |new(Vec3 localP..." current
  • 13:0113:01, 5 July 2025 diff hist +1,274 N PathListMoverCreated page with "{{:pathListMoverExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |pathListMover(float Speed) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |setSpeed(float speed) |Set speed in m/s |- | |addList(table points) |Add new set of cordinates to pass through. |- | |setList(table points..." current
  • 13:0113:01, 5 July 2025 diff hist +2,154 N GraphicParticleSystemCreated page with "{{:GraphicParticleSystemExampleCode}} ==Inheritance== RenderNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |GraphicParticleSystem |new(int maxParticle, float particleLifeTime, bool loopParticleEffect) |Create a new Instance of the the GraphicParticleSystem |- |GraphicParticleSystem |GraphicParticleSystem:new(int maxParticle,..." current
  • 13:0113:01, 5 July 2025 diff hist +2,938 N ParticleSystemCreated page with "{{:ParticleSystemExampleCode}} ==Inheritance== RenderNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |ParticleSystem |new(table dataTab) |Create a new Instance of the the ParticleSystem |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |update() | |- | |setLine..." current
  • 13:0113:01, 5 July 2025 diff hist +948 N ParticleEffectElectricFlashCreated page with "{{:ParticleEffectElectricFlashExampleCode}} ==Inheritance== RenderNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |ParticleEffectElectricFlash |new(string textureFile) |Create a new Instance of the the ParticleEffectElectricFlash |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |update() | |- | |P..." current
  • 13:0013:00, 5 July 2025 diff hist +1,005 N MeshSplitterCreated page with "{{:MeshSplitterExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |MeshSplitter() | |- |} template:func ==Functions== {| class="wikitable" !|return !|function !|description |- |ListSplittedMesh |splitMesh(Mesh meshToSplit) |plit an mesh up into several submeshes. for speed recommend to use soft normals else this function will be very slow. |- | |MeshSplitter:calculateSubMeshMovement..." current
  • 13:0013:00, 5 July 2025 diff hist +1,718 N ModelCreated page with "{{:ModelExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |Model |new() |Create a new Instance of the the Model |- |Model |new(Model model) |Create a new Instance of the the Model |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |int |getNumMesh() |Get num meshes. |- |Mesh |Mesh:getMesh..." current
  • 13:0013:00, 5 July 2025 diff hist +2,177 N MeshCreated page with "{{:MeshExampleCode}} ==Inheritance== RenderNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |Mesh |new() |Create a new Instance of the the Mesh |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |float |setColor() |get mesh approximated height. |- |float |getHeight() |get mesh apporixmated height. |- |bool |Mesh:getHasAlpha()|getHasAlp..." current
  • 13:0013:00, 5 July 2025 diff hist +2,320 N NodeMoverCreated page with "{{:NodeMoverExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |NodeMover(SceneNode nodeToMove, float walkSize, float walkSpeed, float pathOffset) |pathOffset accept a value bettwen [-1,1]. |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |bool |isAtFinalDestination() |Returns true if the node has reach the final destination. |- |Vec3 |NodeMover:getFuturePosition(fl..."
  • 12:5912:59, 5 July 2025 diff hist +8,468 N NodeMeshCreated page with "{{:NodeMeshExampleCode}} ==Inheritance== RenderNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |NodeMesh |new() |Create a new Instance of the the NodeMesh |- |NodeMesh |new(RenderMode renderMode) |Create a new Instance of the the NodeMesh |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |clearMesh() | |-..."
  • 12:5912:59, 5 July 2025 diff hist +1,566 N NavMeshCreated page with "{{:SceneNodeExampleCode}} ==Functions== {| class="wikitable" !|return !|function !|description |- |{ { { island=Island(), position=Vec3() } } } |getHull() |Return a list of all navmesh hulls. Every Navmesh hull then have a list of sub hulls where the first hull is the exterior and remaining subhull is internal that creates hole in the navMesh. |- |{ { island=Island(),position=Vec3() } } |NavMesh:getPath(float npcSize, Object point..." current
  • 12:5912:59, 5 July 2025 diff hist +326 N IslandEdgeCreated page with "{{:IslandEdgeExampleCode}} ==Example== ==Functions== {| class="wikitable" !|return !|function !|description |- |{{Vec3()}} |getHulls() |Returns the hull list. table getHulls()[1] is the island outer edge. Remaining hulls example getHulls()[2] and higher represent the holes in the island. |- |}" current
  • 12:5912:59, 5 July 2025 diff hist +2,006 N IslandCreated page with "{{:IslandExampleCode}} ==Inheritance== SceneNode ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec2 |convertFromIslandLocalSpaceToNavMeshSpace(Vec3 localIslandPosition) |Returns a local position for the navmesh. |- |int |getIslandId() |Get unique island id. |- |float |Island:getDistanceToIsland(Vec3 position)|getDistanceToIsla..."
  • 12:5912:59, 5 July 2025 diff hist +2,038 N FileNodeCreated page with "{{:FileNodeExampleCode}} ==Inheritance== SceneNode ==Functions== {| class="wikitable" !|return !|function !|description |- |bool |contains(string fileName) |Returns true if the file name exist in the node. |- |File |getFile(string fileName) |Always return a file even if the file name do not exist. |- |table |getFileNames() |Return a table with all file n..." current
  • 12:5812:58, 5 July 2025 diff hist +1,021 N EditorCreated page with "{{:EditorExampleCode}} ==Static functions== {| class="wikitable" !|return !|function !|description |- | |save(string fileName) |Save the current map if in EDITOR. If no file has been chosen a window will open where file can be specified. |- | |export(string fileName) |Export the current map if in EDITOR. If no file has been chosen a window will open where file can be specified. |- | |E..." current
  • 12:5812:58, 5 July 2025 diff hist +800 N DirectionalLightCreated page with "{{:DirectionalLightExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |DirectionalLight |new(Vec3 direction, Vec3 color) |Create a new Instance of the the DirectionalLight |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getColor() |Get the color of the light. |-..." current
  • 12:5812:58, 5 July 2025 diff hist +4,357 N CameraCreated page with "{{:CameraExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |Camera |new() |Create a new Instance of the the Camera |- |Camera |new(Text nodeName) |Create a new Instance of the the Camera |- |Camera |new(Text nodeName, bool canRender3D) |Create a new Instance of the the Camera |- |Ca..."
  • 12:5712:57, 5 July 2025 diff hist +3,977 N BuildNodeCreated page with "{{:BuildNodeNodeExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |BuildNode |new() |Create a new Instance of the the BuildNode |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |addPath(SceneNode island1, Vec3 localIslandP..."
  • 12:5712:57, 5 July 2025 diff hist +2,995 N AnimationManagerCreated page with "{{:AnimationManagerExampleCode}} ==Constructor== {| class="wikitable" !|function !|description |- |AnimationManager() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |update(float deltaTime)) |Update the animation, step animation one frame forward. This is done automatically in model. |- | |stopFade(string name, float time) |Sto..."
  • 12:5712:57, 5 July 2025 diff hist +2,865 N Vec3Created page with "{{:Vec3ExampleCode}} ==Members== {| class="wikitable" !|type !|variable !|description |- |float |x | |- |float |y | |- |float |z | |- |} ==Constructor== {| class="wikitable" !|function !|description |- |Vec3(float value) | |- |Vec3(float x, float y, float z) | |- |Vec3(Vec2 vec, float z) | |- |Vec3(Vec3 vector) | |- |Vec3() | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |float |dot() |Returns the dot product of this ve..." current
  • 12:5612:56, 5 July 2025 diff hist +525 N AmbientLightCreated page with "{{:AmbientLightLightExampleCode}} ==Inheritance== SceneNode ==Static functions== {| class="wikitable" !|return !|function !|description |- |AmbientLight |new(Vec3 color) |Create a new Instance of the the AmbientLight |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |Vec3 |getColor() |Get the color of the light. |- | |setColor(..." current
  • 12:5612:56, 5 July 2025 diff hist +2,384 N LuaCreated page with "Lua API documentation == Class overview == {|cellspacing="0" cellpadding="0" |- |'''Nodes''' | :'''Math''' | :'''Form''' | :'''Core''' | :'''Game''' | :'''Lists''' | :'''Render''' |- |valign="top" width="160"| *AmbientLight *AnimationManager *BuildNode *Camera *DirectionalLight *Editor *FileNode *Island *IslandEdge *NavMesh *NodeMesh *NodeMover *Mesh *Model *MeshSplitter *ParticleEffectElectricFlash *Part..."
  • 12:5612:56, 5 July 2025 diff hist −538 Main PageNo edit summary current
(newest | oldest) View ( | older 50) (20 | 50 | 100 | 250 | 500)