(HDRP)Building System
ElectorchStrauss
$5.49
$37.62
85%OFF
(no ratings)
Date |
Price |
---|---|
日時 |
価格($) |
07/07(2022) |
5.49 |
12/19(2023) |
37.62 |
03/13(2024) |
5.49 |
11/24(2024) |
5.49 |
Jump AssetStore
You'll learn how building system works in most games like in Ark and Valheim, or how to add more style based on pre-existing construction types. It's a snap to the nearest with favoritism.This is the HDRP version, if you want here is the URP or the BIRP.-----------------------------------------------------------------------------------------------RequiredThis asset uses the new input system package and is suitable for any kind of games."Building System uses JosephinSlab-Regular(Font) under SIL Open Font License; see Third-PartyNotices.txt file in package for details."-----------------------------------------------------------------------------------------------SummaryThe Input :Pressing 1 to 8 while hovering over an item in Mini Inventory selects a construction.Rotate the xray with "Mouse ScrollWheel".Pressing left click will spawn the construction with the xray rotation and position.You can deselect the selection by right clicking or by pressing the same hotbar shortcut (1-8).Pressing space bar jumps.Press "F" to climb ladders.Press "X" deletes the nearest construction.Press "V" to change materials.Press "H" to hide hud.Press "I" to hide mini inventory.Press "ALT" enables to look at the character's face.Pressing "MMB"* creates a forcefield attracting the closest rigidbody from the mouse.*MMB stands for Middle Mouse ButtonCharacter controller :The player no longer moves by directly updating it's transform position. It actually use MoveTowards function to add velocity to the rigidbody based on input. You can change the speed, the acceleration, the shift speed, the air acceleration, the height of a jump, the amount of jump in the air.The ShowRoom :There is a ShowRoom to display how a finished home would look like. And also to display how and where all the constructions should be placed. You can add constructions to the ShowRoom or make a completely new structure nearby.The Favoritism :You can only place floor first to create a new structure. So you have to place a floor first, then a wall on the floor, then a roof on the wall. You can only place floor on floor, wall on floor, doorway on floor, pillar on floor and corner on floor. You can only place door on doorway. You can only place roof on wall and roof on roof. You can only place stairs on floor and stairs on stairs. This way if a construction does not snap, it won't be able to be instantiated.The Main Floor :The main floor is a boolean to check on each construction if the selected xray is the first piece of a new building or if it's snapped to a piece already snapped to a main floor. This way a complete building is parented inside it's nearest main floor making the hierarchy easier to read but you should keep in mind that destroying the nearest construction might destroy the whole building if the nearest construction is the main floor (since all construction snapped on the main floor are child of the nearest main floor).The Hinge joints :The doors are working with Hinge joints so you just have to walk into them to "push" them open, kinda like the doors in far west saloon or in some restaurant.The Torch and BeamLamp both use the hinge joints to make the chain move realistically and add more realism to the system.There's also a trap door that opens upward.-----------------------------------------------------------------------------------------------Link to documentationDocumentationItch.io pagelinktr.ee/electorchScripts:GameController.csOrbitCamera.csPlayerController.csPlayerBuilder.csConstructionType.csConstructionObject.csXrayObject.csCanvasCamera.csCanvasFocus.csUICursorFollow.csModel:Wall (620 vertices)Wall.001Wall.002Floor (488 vertices)Pillar (110 vertices)Pillar.001CornerInt (130 vertices)CornerExt (130 vertices)Door (476 vertices)Door.001Door.002Door.002iDoorWay (1024 vertices)DoorWay.001DoorWay.002Stairs (517 vertices)Roof (545 vertices)Fence (392 vertices)Gate (208 vertices)Beam (24 vertices)BeamLamp (100 vertices)Ceiling (504 vertices)Cellbar (1014 vertices)Cellwall (1014 vertices)Chain (2304 vertices)HalfCeiling (318 vertices)HalfFloor (386 vertices)HalfWall (386 vertices)BeamLamp (389 vertices)Ramp (517 vertices)Ramp.001Shutter (9125 vertices)Torch (10019 vertices)TrapDoor (1070 vertices)Trapeze (300 vertices)TrapWall (876 vertices)LadderWindow (88 vertices)WindowWall (870 vertices)Materials :Ground (for the plane we walk on)Back/Front/DoorFrameMetal (for the construction)Backxray/Frontxray(for the xray)Scarf/Body/Eyes/Nose/PlayerColliderSkyboxMatShaders :PlayerOutlineSobel