From 8b6337446dd79faf226ea9df40d4d06d81c38436 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 25 Apr 2023 19:28:54 +0300 Subject: DrawCapsule and DrawCapsuleWires. Free Camera3D example. --- ReiLua_API.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'ReiLua_API.lua') diff --git a/ReiLua_API.lua b/ReiLua_API.lua index 76513a9..f2c4289 100644 --- a/ReiLua_API.lua +++ b/ReiLua_API.lua @@ -3129,6 +3129,30 @@ function RL.DrawCylinderWires( position, radiusTop, radiusBottom, height, slices ---@return any success function RL.DrawCylinderWiresEx( startPos, endPos, startRadius, endRadius, sides, color ) end +---Draw a capsule with the center of its sphere caps at startPos and endPos +---- Failure return false +---- Success return true +---@param startPos table +---@param endPos table +---@param radius number +---@param slices integer +---@param rings integer +---@param color table +---@return any success +function RL.DrawCapsule( startPos, endPos, radius, slices, rings, color ) end + +---Draw capsule wireframe with the center of its sphere caps at startPos and endPos +---- Failure return false +---- Success return true +---@param startPos table +---@param endPos table +---@param radius number +---@param slices integer +---@param rings integer +---@param color table +---@return any success +function RL.DrawCapsuleWires( startPos, endPos, radius, slices, rings, color ) end + ---Draw a plane XZ ---- Failure return false ---- Success return true -- cgit v1.2.3