How to make a plugin with a building so that the building does not turn when the camera turns?

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Chanel_joom
Settler
Reactions:
Posts: 2
Joined: 26 Aug 2023, 14:27

How to make a plugin with a building so that the building does not turn when the camera turns?

#1

Post by Chanel_joom »

how to make the building in the plugin not rotate? What function should I write in the code?

User avatar
FVI
Inhabitant of a Solar System
Reactions:
Posts: 1624
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: How to make a plugin with a building so that the building does not turn when the camera turns?

#2

Post by FVI »

Code: Select all    Reset

, "rotation aware" : "true",
JSON checker
Check
You must include 4 textures

User avatar
ur_sc4_guy
Metropolitan
Reactions:
Posts: 135
Joined: 16 Jun 2022, 20:01
Location: Any ambanivohitra any e, Madagascar
Plugins: Showcase Store

Plugin Creator

Platform

Re: How to make a plugin with a building so that the building does not turn when the camera turns?

#3

Post by ur_sc4_guy »

FVI wrote:
01 Sep 2023, 09:34

Code: Select all    Reset

, "rotation aware" : "true",
JSON checker
Check
You must include 4 textures
Doesn't this have the inverse desired effect?
I mean, I think he/she is asking to not make it rotation-aware.

User avatar
FVI
Inhabitant of a Solar System
Reactions:
Posts: 1624
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: How to make a plugin with a building so that the building does not turn when the camera turns?

#4

Post by FVI »

ur_sc4_guy wrote:
01 Sep 2023, 15:01
FVI wrote:
01 Sep 2023, 09:34

Code: Select all    Reset

, "rotation aware" : "true",
JSON checker
Check
You must include 4 textures
Doesn't this have the inverse desired effect?
I mean, I think he/she is asking to not make it rotation-aware.
Yes, you're right.
Put "false" instead of "true"

Code: Select all    Reset

, "rotation aware" : "false",
JSON checker
Check

User avatar
Kulche
Pluche
Reactions:
Posts: 1158
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to make a plugin with a building so that the building does not turn when the camera turns?

#5

Post by Kulche »

First of all, this attribute is a boolean so you don't put it in quotation marks. I assume "the building turns when the camera turns" means that simply the building has no rotation frames. If you want it not to rotate you have to provide a total of 4 frames and use "rotation aware": true.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”